Personal tools
You are here: Home EGO ITF Software Support&Maintenance Cron Jobs
Navigation
Log in


Forgot your username or password?
 
Document Actions

Cron Jobs

by Franco Carbognani last modified 2007-02-12 15:40

On the machine "monitor" as user "root"

In order to clean  the /virgoLog, /virgoDev, /virgoData and /virgoDev/Sa/DSPCodeBackup areas.
Via rsync the old files in /virgoLog and /virgoDev/Sa/DSPCodeBackup are replicated under the corresponding Old directory

# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
10 10 * * * find /virgoLog -name 'core' -mtime +7 -exec rm -f {} \;
15 10 * * * find /virgoLog -name 'core.[0-9]*' -mtime +7 -exec rm -f {} \;
20 10 * * * find /virgoData -name 'core' -mtime +7 -exec rm -f {} \;
25 10 * * * find /virgoData -name 'core.[0-9]*' -mtime +7 -exec rm -f {} \;
30 10 * * * find /virgoDev -name 'core' -mtime +7 -exec rm -f {} \;
35 10 * * * find /virgoDev -name 'core.[0-9]*' -mtime +7 -exec rm -f {} \;
40 10 * * * find /virgoDev/bb -name 'core.[0-9]*' -exec rm -f {} \;
45 10 * * * find /opt/w3 -name 'core' -mtime +7 -exec rm -f {} \;
50 10 * * * find /opt/w3 -name 'core.[0-9]*' -mtime +7 -exec rm -f {} \;
20 23 1-30/5 * * find /users -name '.nfs*' -mtime +5 -exec rm -f {} \;
30 4 * * * find /virgoLog -name '*.*log*' -mtime +30 -type f -exec rm -f {} \;
35 4 * * * find /virgoLog -name '*.*log.5' -mtime +3 -type f -exec rm -f {} \;
40 4 * * * find /virgoLog -name '*.car' -mtime +7 -type f -exec rm -f {} \;
45 4 * * * find /virgoDev/Sa/DSPCodeBackup -mtime +30 -type d -mindepth 2 -exec rm -rf {} \;
50 4 * * * /usr/sbin/logrotate /root/logrotate.d/logrotate.conf -s /root/logrotate.d/logrotate.status
0 11 * * * rsync -Cav  --exclude="Old" /virgoDev/Sa/DSPCodeBackup st9::virgoOLD
0 11 * * * rsync -Cav  --exclude="/virgoLog/Old" --exclude="/virgoLog/Subsystems" /virgoLog st9::virgoOLD


On the machine "ctrl100" as user "virgorun"

in order to clean the user ~ directory and move files into ~/home/AutoCleanUp

10 10 * * * find /users/virgorun -type f -name '*.*' -mtime +90 -maxdepth 1 -exec mv {} /users/virgorun/home/AutoCleanUp \;
10 15 * * * find /users/virgorun -name 'core' -mtime +7 -exec rm -f {} \;
10 20 * * * find /users/virgorun -name 'core.[0-9]*' -mtime +7 -exec rm -f {} \;