Backing up Cron Jobs
- Recovering the Cron Jobs
cronbackup.sh script sets up the initial settings for
running backups. It uses cron jobs to perform nightly backups of the
your current crontab. The crontab is stored by hostname. This way
you can have different cron jobs on various machines. You must
run this script only once on each machine you wish to
preserve cron jobs. The script will backup cron jobs at 12 midnight to
~/.cron-$HOST where $HOST is the hostname.
Recovering Cron jobs
cronrecover.sh script will recover the cron jobs from
~/.cron-$HOST This will include the cronbackup entry.
If you wish to remove the cronbackups, please edit the cron by running
[user@host]$ crontab -e
which will allow the you to remove the line for cron backups. The
line you will need to remove will be of the format
0 0 * * * /usr/bin/crontab -l > $HOME/.cron-$HOST
where $HOST is the machine name.
Please note that cronrecover.sh will delete the current
crontab entry and recover the last backed up cron entry.
$Id: backing_up_cron_jobs.html,v 1.5 2004/06/12 00:26:33 vibhor Exp $