SLAC CPE Software Engineering Group
Stanford Linear Accelerator Center
System Admin

CRONTAB Backup

 

SLAC Detailed
SLAC Computing
Software Home
Software Detailed
 

 

 

 


 

Nightly cronjob for laci, flaci, brobeck, and root makes copies of crontab files to /usr/local/admin/CRON.  It will also compare the last 2 crontab files and if there is a difference will email differences to controls-system-admins@slac.stanford.edu

The cronjob runs under each account on the daemon servers

lcls-daemon2:     laci     brobeck

facet-daemon1:  flaci

mccfs9:  root

SCRIPT:  /usr/local/admin/scripts/copy-cron   (Will keep 14 copies )

[root@mccfs9 CRON]# pwd


/usr/local/admin/CRON

[root@mccfs9 CRON]# ls -ltrh


-rw-rw-r-- 1 laci lcls 3.5K Aug 20 08:59 crontab.lcls-daemon2-laci-save-Aug-20-20
-rw-r--r-- 1 root root 1.3K Aug 20 09:00 crontab.mccfs9-root-save-Aug-20-20
-rw-rw-r-- 1 brobeck lcls 588 Aug 20 09:03 crontab.lcls-daemon2-brobeck-save-Aug-20-20
-rw-rw-r-- 1 flaci facet 912 Aug 20 09:04 crontab.facet-daemon1-flaci-save-Aug-20-20

 

 

Author: Ken Brobeck  20-Aug-2020

Modified: 20-Aug-2020