UWMLSC > Beowulf Systems > Medusa

Backing up Cron Jobs

  1. Links
  2. Setup
  3. Recovering the Cron Jobs




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
where $HOST is the hostname.

Recovering Cron jobs


script will recover the cron jobs from the
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 $
Check this page for dead links, sloppy HTML, or a bad style sheet; or strip it for printing.
Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.