]> git.openstreetmap.org Git - chef.git/blob - cookbooks/planet/templates/default/planet-notes-cleanup.erb
nominatim: make pool size and workers configurable
[chef.git] / cookbooks / planet / templates / default / planet-notes-cleanup.erb
1 #!/bin/bash
2
3 exec find /store/planet/notes/20?? -maxdepth 1 -type f -iname 'planet-notes-??????.osn*' -printf '%T@ %p\n' | \
4   sort -k 1nr | \
5   sed 's/^[^ ]* //' | \
6   tail -n +17 | \
7   xargs -r rm -f