backwpup icon indicating copy to clipboard operation
backwpup copied to clipboard

Multiple Backups on WP Multisites

Open Christian-Roth opened this issue 7 years ago • 4 comments

My WP Multisite creates multiple backups since the following change:

https://github.com/inpsyde/backwpup/commit/a4fb0a24f874c23d5b1bdf8b9417eeff4d877d77#diff-29b55d7c830b04ca5f3b553cfcd9f78a

And as far as I can see it: is_main_network() is always true for every site of my multisite. And so the backup cron is executed by every subpage.

This should work: if ( ! is_main_site() || ( ! is_main_network() && ! is_main_site() ) ) { return; }

Or:

if ( ! is_main_network() ) { return; }

if ( ! is_main_site() ) { return; }

Christian-Roth avatar Apr 12 '18 15:04 Christian-Roth

I have the same problem, I will try to apply this fix, thank you very much @Christian-Roth!

When I run backup manually, there is only one backup archive, but when triggered by cron, then there are each backup archive for each site (only one of them is working and without problems).

pavelevap avatar Apr 24 '18 08:04 pavelevap

There's at least one support ticket for this issue (from February 2018) with a proposed solution similar to the one above.

mundschenk-at avatar Aug 02 '18 06:08 mundschenk-at

As I know, the latest ( 3.6 ) version fixed this issue

cuongdcdev avatar Aug 02 '18 11:08 cuongdcdev

The issue got fixed at the wrong place :) As mentioned here: https://wordpress.org/support/topic/multi-site-wpcron-multiple-backups/page/2/#post-10435815 And here: https://wordpress.org/support/topic/multi-site-wpcron-multiple-backups/page/3/#post-10436561

Christian-Roth avatar Aug 02 '18 11:08 Christian-Roth