X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0d9cd6e9f9cc7290e9c38f3c4437f611e67b6101..0f59f592a5f0be9a32d2e49cfdae96910ec2df3f:/cookbooks/planet/templates/default/planet-notes-dump.cron.erb?ds=sidebyside diff --git a/cookbooks/planet/templates/default/planet-notes-dump.cron.erb b/cookbooks/planet/templates/default/planet-notes-dump.cron.erb index f4fa2e7f4..3c5709af1 100644 --- a/cookbooks/planet/templates/default/planet-notes-dump.cron.erb +++ b/cookbooks/planet/templates/default/planet-notes-dump.cron.erb @@ -2,4 +2,4 @@ MAILTO=grant-smaug@firefishy.com 0 3 * * * www-data /usr/local/bin/planet-notes-dump #Delete Planet Notes dump files older than 8 days -0 8 * * * www-data find /store/planet/notes/20??/ -maxdepth 1 -type f -iname 'planet-notes-??????.osn*' -printf '%T@ %p\n' | sort -k 1nr | sed 's/^[^ ]* //' | tail -n +17 | xargs -r rm -f +10 8 * * * www-data find /store/planet/notes/20??/ -maxdepth 1 -type f -iname 'planet-notes-??????.osn*' -printf '\%T@ \%p\n' | sort -k 1nr | sed 's/^[^ ]* //' | tail -n +17 | xargs -r rm -f