-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathuser-cronjobs
23 lines (17 loc) · 2.55 KB
/
user-cronjobs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# m h dom mon dow command
# every day rsync backpan. RECENT-* is used by my 5.6.2 tester, clients also need 01mailrc, 03modlist
10 6 * * * cd /web/cpxxxan;rsync -qrptgx rsync://cpan-rsync.perl.org/CPAN/authors/RECENT* backpan/authors/
11 6 * * * cd /web/cpxxxan;rsync -qrptgx rsync://cpan-rsync.perl.org/CPAN/authors/01mailrc.txt.gz backpan/authors/
12 6 * * * cd /web/cpxxxan;rsync -qrptgx rsync://cpan-rsync.perl.org/CPAN/modules/03modlist.data.gz backpan/modules/
13 6 * * 0,3,6 cd /web/cpxxxan;rsync -qrptgx --exclude=CHECKSUMS -e "ssh -i /home/david/.ssh/for-backpan/id_rsa" [email protected]:/mnt/lv-cpan/authors/id/ backpan/authors/id/
13 6 * * 1,4 cd /web/cpxxxan;rsync -qrptgx --exclude=CHECKSUMS -e "ssh -i /home/david/.ssh/for-backpan/id_rsa" [email protected]:/mnt/lv-cpan/authors/id/ backpan/authors/id/
13 6 * * 2,5 cd /web/cpxxxan;rsync -qrptgx --exclude=CHECKSUMS backpan.cpantesters.org::BACKPAN/authors/id/ backpan/authors/id/
# funet mirror is down
# 0 3,9,15,21 * * * cd /web/cpxxxan;rsync -qrptgx ftp.nic.funet.fi::backpan/authors/id/ backpan/authors/id/
# 18:00 on 2nd of month, backup databases
0 18 2 * * mysqldump -u root cpantesters>cpantesters-db.backup.sql;gzip -9f cpantesters-db.backup.sql
0 19 2 * * mysqldump -u root cpXXXan>cpXXXan-db.backup.sql;gzip -9f cpXXXan-db.backup.sql
# Every day, 22:00, import backpan, download test results, import test results. Takes about two hours, so ETA 00:00
0 22 * * * cd /web/cpxxxan;echo Import backpan and test results;echo -n start:;date; ./importbackpan.pl;./refill-cpanstatsdb.pl --quiet --finishlimit=1;./importtestresults.pl;echo -n finish:;date
# Every other day 02:00, rebuild everything. Takes 1d7h-ish
0 2 * * 0,2,4 cd /web/cpxxxan; echo Rebuild sites; echo -n start:; date; ./parallel-builder.pl ./build02packages.pl '--os netbsd' '--os irix' '--os MSWin32' '--os cygwin' '--os solaris' '--perl 5.8.8 --os irix' '--perl 5.8.4 --os solaris' '--perl 5.5.3' '--perl 5.6.1' '--perl 5.6.2' '--perl 5.8.1' '--perl 5.8.3' '--perl 5.8.5' '--perl 5.8.8' '--perl 5.8.9' '--perl 5.9.0' '--perl 5.9.1' '--perl 5.9.2' '--perl 5.9.3' '--perl 5.9.4' '--perl 5.9.5' '--perl 5.10.0' '--perl 5.10.1' '--perl 5.12.0' '--perl 5.12.1' '--perl 5.12.2' '--perl 5.12.3' '--perl 5.12.4' '--perl 5.12.5' '--perl 5.14.0' '--perl 5.14.1' '--perl 5.14.2' '--perl 5.14.3' '--perl 5.16.0' '--perl 5.16.1' '--perl 5.16.2' '--perl 5.16.3' '--perl 5.14.4' '--perl 5.18.0' '--perl 5.18.1' '--perl 5.18.2' '--perl 5.18.4' '--perl 5.20.0' '--perl 5.20.1' '--perl 5.20.2' '--perl 5.22.0' '--perl 5.22.1'; echo -n finish:; date