40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  40m Log  Not logged in ELOG logo
Entry  Sat Feb 23 00:34:28 2013, yuta, Update, Computers, crontab in op340m deleted and restored (maybe) 
    Reply  Sat Feb 23 15:26:26 2013, yuta, Update, Computers, crontab in op340m updated 
       Reply  Sat Feb 23 15:46:16 2013, rana, Update, Computers, crontab in op340m updated 
          Reply  Wed Feb 27 11:22:54 2013, yuta, Update, Computers, backup crontab 
Message ID: 8181     Entry time: Wed Feb 27 11:22:54 2013     In reply to: 8147
Author: yuta 
Type: Update 
Category: Computers 
Subject: backup crontab 

I made a simple script to backup crontab (/opt/rtcds/caltech/c1/scripts/crontab/backupCrontab).

#!/bin/bash

crontab -l > /opt/rtcds/caltech/c1/scripts/crontab/crontab_$(hostname).$(date '+%Y%m%d%H%M%S')


I put this script into op340m crontab.

00 8 * * * /opt/rtcds/caltech/c1/scripts/crontab/backupCrontab

It took me 30 minutes to write and check this one line script. I hate shell scripts.

ELOG V3.1.3-