Delete snapshot files earlier
authorChristoph Berg <myon@debian.org>
Tue, 17 Dec 2024 17:41:51 +0000 (18:41 +0100)
committerChristoph Berg <myon@debian.org>
Tue, 17 Dec 2024 17:41:51 +0000 (18:41 +0100)
Also, move -maxdepth before -type since it's a global option.

repo/crontab

index e4c68ca04b9a77c005b7b3312150064099c0b504..4993b9514e2657ad46ea6b62942476e73dd1f0bf 100644 (file)
@@ -10,7 +10,7 @@ MAILTO=cb@df7cb.de
 
 # 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 -type f -maxdepth 1 -name '*.*' -ctime +90 | xargs -r rm -f
+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 +7 | xargs -r rm -rf
-8 0 * * *  find /srv/apt/repo/morgue -type f -maxdepth 1 -name '*+~*.g*' -ctime +7 | xargs -r rm -f
+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