backup icon indicating copy to clipboard operation
backup copied to clipboard

Cron is starting a second full backup while manual started full backup is running

Open frahi opened this issue 3 years ago • 3 comments

I installed the backup app and started a full backup manually using occ backup:point:create on a shell.

When I had a look on what is happening at the system I found 2 directories in the apps data directory:

ls /var/www/nextcloud/data/appdata_ocu2885nl06t/backup/
20220417062826-full-fnbY9wEPqbllW9E  
20220418102015-full-MbazSzn4ROTsL6j

This backup takes quite a long time (> 24h) and is still running, so I figured out that the following processes are accessing these directories:

 235510 be/4 www-data  482.48 K/s  399.66 K/s  0.00 % 99.99 % php occ backup:point:create
 269902 be/4 www-data  396.06 K/s  327.65 K/s  0.00 % 99.99 % php -f /var/www/nextcloud/cron.php

My interpretation is that there are 2 processes running each creating a full backup. Is this correct? This should be avoided.

frahi avatar Apr 18 '22 12:04 frahi

could it be, that cron.php will trigger occ backup only?

Githopp192 avatar Apr 19 '22 14:04 Githopp192

could it be, that cron.php will trigger occ backup only?

The first process (235510) had been started manually by myself. The second one is started by cron service.

frahi avatar Apr 20 '22 20:04 frahi

is "php -f /var/www/nextcloud/cron.php" not the regular cron.php, which runs every 5 minutes anyway?

Githopp192 avatar Apr 20 '22 20:04 Githopp192