Backup Installed Cron Job Entries

To back up your cron jobs, type the following command to create a backup within the /backup/cron directory:

crontab -l > /backup/cron/root.bakup

If you wish to back up a specific user, use the following replacing userName with the user you want to generate a backup for.

crontab -u userName -l > /backup/cron/userName.bakup

Was this article helpful?

Related Articles