Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 1 KB
# m h dom mon dow command
MAILTO=david@cantrell.org.uk
# first the main site ...
# backups
0 5 2 * * mysqldump -u root cpandeps>cpandeps-db.backup.sql;gzip -9f cpandeps-db.backup.sql
0 6 2 * * mysqldump -u root cpantesters>cpantesters-db.backup.sql;gzip -9f cpantesters-db.backup.sql
# clean up old files
0 7 * * * PID=$$;touch -d "7 days ago" /tmp/$PID;find /web/cpandeps/db/r* -type f -not -newer /tmp/$PID -exec rm -f {} \;
# refresh webshite at 09:00. Takes about 2.5 hours
0 9 * * * nice -n 19 /web/cpandeps/getfiles.sh
# ------------------------------------------------------------------------
# and the ...-dev site. These only happen once a week
# backup
0 17 1 * * mysqldump -u root cpandepsdev>cpandepsdev-db.backup.sql;gzip -9f cpandepsdev-db.backup.sql
# clean up old files
0 19 * * 3 PID=$$;touch -d "7 days ago" /tmp/$PID;find /web/cpandeps-dev/db/r* -type f -not -newer /tmp/$PID -exec rm -f {} \;
# refresh dev webshite at 21:00. Takes about 2.5 hours
0 21 * * 3 nice -n 19 /web/cpandeps-dev/getfiles.sh