]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/db/templates/default/cron.erb
Reduce WAL archive length.
[chef.git] / cookbooks / db / templates / default / cron.erb
index e17add1c1831d379a5e4ebca49486b4bb83680af..5f9b51c0006175301b7aabc0335a4c648ce05160 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 3 weeks of WALs
+find -L /store/postgresql/archive -mtime +21 -print0 | xargs -0r rm