Ancan Posted September 26, 2020 Share Posted September 26, 2020 Hi all, I've got a cronjob to backup all my dockers and VM's, but it's stopped running recently. It's defined in /boot/config/plugin/dynamix/backup-jobs.cron, and I've not made any changes to this file. Syslog doesn't show anything relevant. I can run it manually without issues, but it just doesn't run as scheduled. Running Unraid 6.9.0-beta25. Anyone got any ideas? Quote Link to comment
Squid Posted September 26, 2020 Share Posted September 26, 2020 Not without seeing the .cron file you made Quote Link to comment
Ancan Posted September 26, 2020 Author Share Posted September 26, 2020 0 1 * * 0 /mnt/disk6/backup/weekly-backup.sh 0 1 * * 1-6 /mnt/disk6/backup/daily-backup.sh As I wrote, this have been running just fine before. Quote Link to comment
Squid Posted September 27, 2020 Share Posted September 27, 2020 Looks ok. If they're within cron, you can verify via crontab -l and cat /etc/cron.d/root To debug why, first thing I'd do is add to the script logger "Daily Script Running" so you'd know if it at least tries to execute it on the schedule. Beyond that, it's possible that if you're say using rclone or something to do the backup that you might have to specify the entire path to the executable, rather than simply relying on the environmental search path Quote Link to comment
Ancan Posted September 28, 2020 Author Share Posted September 28, 2020 Very strange, but without changing anything it's started running again. Well, *something* needs to have changed but I can't figure out what. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.