Skip to content

[hotfix] fix crontab (so backups will run)

aguestuser requested to merge hotfix-fix-backup-crontab into master
  • symptom: backup script not running from crontab every morning
  • cause: we placed the crontab in (possibly incorrect) location for user-based crontabs (/var/spool/cron/crontabs/root), which also potentially requires installing the crontab for it to run
  • fix: instead: place the crontab in the location for systemwide crontabs (/etc/crontab) and specify that our job should be run by root

side-effect:

  • log the output of the backup job to /tmp/backups.log and include a timestamp of when the last job ran to enable easier spot-checking
  • eradicate the hourly restart job from our crontab

Merge request reports