]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/db/templates/default/cron.erb
Reduce WAL expiry to 14 days
[chef.git] / cookbooks / db / templates / default / cron.erb
index e17add1c1831d379a5e4ebca49486b4bb83680af..7ff61cff349550ff48938836344310d071b2d7dc 100644 (file)
@@ -1,4 +1,4 @@
 #!/bin/sh
 
-# Cleanup archive directory
-find -L /store/postgresql/archive -mtime +40 -print0 | xargs -0r rm
+# Cleanup archive directory - keep 2 weeks of WALs
+find -L /store/postgresql/archive -mtime +14 -print0 | xargs -0r rm