In the even of a crash I realize that I may not be backing up system and user cron jobs. How can I automate the backing up of my systems cron jobs?

  • 1
    <snide remark> With another cronjob of course! </snide remark> - in all seriousness though, good question. :)
    – jrg
    Feb 24, 2012 at 1:25

2 Answers 2


Yeah another cronjob for the automation but in terms of collecting everything together, there are a few directories you want to cater for:


Back those up, and you should have everything. You can do that with:

sudo tar cvf cron-backup.tar /etc/cron.* /var/spool/cron/crontabs

crontab -l > /path/to/your/backup/file

For example:

crontab -l > /var/backups/${USER}.crontab.list

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .