I have one scheduled back-up job at 3:30AM to backup all the virtual servers in Virtualmin. I get these emails telling me that backup has failed because there is already a backup process running. Later I get another email that says the backup process completed successfully.
To my knowledge, I only set up one backup with a single start time in the schedule. I don’t see where the other process is coming from separated by a few minutes?
Hmm… if you log into your server over SSH as root, what does this command output:
crontab -l | grep backup.pl
That should show which backup jobs are scheduled within cron.
Here is the output of the command:
[root@server ~]# crontab -l | grep backup.pl
0,30 3 1,4,7,10,13,16,19,22,25,28 * * /etc/webmin/virtual-server/backup.pl --id 135550676332736
Ah, it looks like that one cron job is scheduled to run at both 3:00 and 3:30.
So at 3:00, it would fire off the backup process.
Then, at 3:30, you’d receive an error stating it was already running.
And finally, when the initial backup does actually complete, you’d receive an email stating that it was completed successfully.
To correct that, you can go into the Backup and Restore -> Scheduled Backups -> BACKUP_NAME -> Schedule and reporting, and tweak the scheduled backup time to make sure it’s running just once a day.
Thank you! Thank you!
With that information I went back to the complex schedule that I had set up, and now I could see that I must have had the command key held when I clicked 30 in the minutes. Zero is not supposed to be greyed out, it is just the default.
All fixed now. Great. Thank you.