nominatim: reduce archiving time for wal logs
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 18 Jun 2015 06:15:58 +0000 (08:15 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 18 Jun 2015 06:15:58 +0000 (08:15 +0200)
cookbooks/nominatim/templates/default/clean-db-nominatim.erb

index 4a40e22d4568ddb63c67ff9b374cd29006d9d157..42fd9b4d43bb8faf6a33234157a66177559e3e4c 100644 (file)
@@ -15,6 +15,6 @@ done
 <% if node[:postgresql][:settings][:defaults][:archive_mode] == "on" -%>
 
 # Cleanup archive directory
 <% if node[:postgresql][:settings][:defaults][:archive_mode] == "on" -%>
 
 # Cleanup archive directory
-find -L /data/postgresql-archive -mtime +3 -print0 | xargs -0r rm
+find -L /data/postgresql-archive -mtime +2 -print0 | xargs -0r rm
 
 <% end -%>
 
 <% end -%>