Support » Plugin: BackWPup - WordPress Backup Plugin » Multi-Site + WPCron -> Multiple Backups

  • Resolved snoffel


    Thanks a lot for your great plugin!
    As others reported already, there is an issue with multi site installations together with WPCron. I managed to work around it with an external Cronjob Service, but i would love to see this bug fixed and everything again under the control of our system.

    I made some tests and want to share my findings with you – maybee it helps fixing the problem:

    – I have an multisite installation with 19 Sites (1 MasterSite 18 Subsites)
    – lots of sites started as a Clone of another Site
    – My Job is a Database Backup, ALL Tables, daily at 2:20, Tar GZip, Upload to Dropbox
    – When i start manually or via external link: everything is fine: 1 Backup, all Tables, Duration approx. 30 Seconds

    Last night i switched back to WPCron, this is what i got:
    – in the logs and in the Dropbox i find 8 Backup Files, written between 02:22 and 05:34
    – inside these backups i find only the Tables belonging to ONE Site, so the data to 11 other sites and the master-installation Tables are not included!
    – i can’t find a rule why it is these 8 sites out of the 19. There are new ones and old ones included, high and low Site-IDs, Sites with Subfolder-Adress and Sites with mapped Domains, high traffic and nearly no traffic sites.
    – i installed the PlugIn WP Crontrol to have a look inside the Cron Tables: i only find in one old site (but not THE oldest) backwpup_cron: {“id:” 3} (this is my BackWPUp Job-ID)

    Any suggestions how to get WpCron running correct again?

    Do you need any more logfiles or even special tests i should run for you? I would be happy to share more details in PM.


    • This topic was modified 4 years, 10 months ago by snoffel.
Viewing 15 replies - 16 through 30 (of 31 total)
  • Noooooh, all errors still here.
    Still multiple backups on multisite installation with wpcron … !

    may be this helps to find the error:
    – yesterday I tried with a daily wp-cron at 11:05
    – later I changed for 01:45
    – at 1:45 there was ONE execution (see my happy post above)
    – at 11:05 SEVEN backups were done (seven domains)!

    There should have been NO backup at 11:05. The job was ONLY scheduled for 01:45
    Even if there was an execution re-scheduled at 11:05, there should be only ONE job

    I think, there is an error in the re-scheduling part.
    Where is the list of jobs stored by backwpup? cannot see ist in wp_options.

    Thanks for some help.

    • This reply was modified 4 years, 7 months ago by teecee.
    Plugin Support duongcuong96


    You can find jobs list at wp_sitemeta table πŸ™‚

    Btw,I’m testing multiple sites system with 5 sites, full backup every day and BWP stills running just fine, cannot reproduce this problem :/

    • This reply was modified 4 years, 7 months ago by duongcuong96.
    • This reply was modified 4 years, 7 months ago by duongcuong96.

    I tested again and found out:
    If you create a new Backup, it is ONLY in the wp-cron table of the main site in the multisite installation.
    Aber first execution, it is (as a copy?) in all sites. So the second execution will be many times. (Nice to check with plugin “wp crontrol”)

    I will help myself by putting into function “run” in “class-cron.php” a

    if (get_current_blog_id() != get_main_site_id()){

    seems to help me quick&dirty.

    • This reply was modified 4 years, 7 months ago by teecee.

    Thanks @christinck! – I made the change you noted a few days ago and just check and not getting multiple backups anymore.

    Plugin Support duongcuong96


    Sorry but I still unable to reproduce this bug πŸ™
    But I going to inform all users got this problem about the quick fix by @christinck and see if their problem got fixed.
    Thank you @christinck

    Thread Starter snoffel


    Yes, i can confirm: the @christinck hotfix works for me as well – Thank you!
    @duongcuong96: any chance this will make its way into the next official plugin version?

    Plugin Support duongcuong96


    I’m going to tell our devs about that πŸ™‚
    I think this hotfix will be added to the next 3.5 release πŸ™‚

    I’ll wait for the official fix with the update and let you know if it helped. Thanks for not forgetting about that error. For months I’ve been deleting duplicated backups manually and I would be thrilled to see it finally fixed.

    Iβ€˜ve updated to version 3.5 and still see the same issue. Whatβ€˜s about you?

    • This reply was modified 4 years, 6 months ago by stidch.

    With the update to 3.5.0 the old problem is back. (SUre, the hotfix is overwritten by backup)

    I had to put in the hotfix again in the 3.5 Code. (see posting above)

    Plugin Support duongcuong96


    The hotfix will be added to the next 3.5.1 release which will be in the next 1 or 2 days.
    If you want, you can be our beta tester by drop us an email to

    Yes, the 3.5.1 version has the hotfix included and works for me. Only one backup per cron-event is done on my multisite installation. Just as it should do. Thanks!

    Plugin Support duongcuong96


    Glad that it’s working for you :),
    If you have any question or issues about BackWPUp, feel free to let us know πŸ™‚
    Have a nice day :).

    Btw, If you find BackWPUp is useful for you, we would really appreciate if you leave a positive review and rating.
    This would encourage us to develop new free features and provide free support πŸ˜€

    I installed 3.5.1 a couple of days ago too and just checked and the fix is working, only one backup for the complete multisite installation. Thanks! And I just put in a review / rating.

    Hi everybody,
    yes, the fix is working but it is not really solving the problem.

    The problem is line 60 in backwpup.php

    is_main_network() is always true if you don’t have a WP Multi Network (which is a network of multiple multisites). And so the backup cron is executed by every subpage of a normal multisite installation.

    Here is my issue at github

    All the best

Viewing 15 replies - 16 through 30 (of 31 total)
  • The topic ‘Multi-Site + WPCron -> Multiple Backups’ is closed to new replies.