summaryrefslogtreecommitdiff
path: root/repo/crontab
blob: 4993b9514e2657ad46ea6b62942476e73dd1f0bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# do not edit, this file is stored in git

MAILTO=cb@df7cb.de

# collect statistics about the repository
0 0 * * *  /srv/apt/repo/apt-stats

# update apt-archive.postgresql.org
1 0 * * *  cd /srv/apt/repo && bin/import-dists && bin/upload-poolfiles && bin/generate-archive-lists

# clean up
5 0 * * *  find /srv/apt/repo/incoming-log -maxdepth 1 -mtime +90 | xargs -r rm -rf
6 0 * * *  find /srv/apt/repo/morgue -maxdepth 1 -type f -name '*.*' -ctime +90 | xargs -r rm -f
# clean up snapshot builds
7 0 * * *  find /srv/apt/repo/snapshot-log -maxdepth 1 -mtime +2 | xargs -r rm -rf
8 0 * * *  find /srv/apt/repo/morgue -maxdepth 1 -type f -name '*+~*.g*' -ctime +2 | xargs -r rm -f