From 51c88d5adaf0081b923dc3f330c98f1ff2432168 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 2 Oct 2017 20:36:08 +0100 Subject: [PATCH] Reduce WAL expiry to 14 days --- cookbooks/db/templates/default/cron.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/db/templates/default/cron.erb b/cookbooks/db/templates/default/cron.erb index 5f9b51c00..7ff61cff3 100644 --- a/cookbooks/db/templates/default/cron.erb +++ b/cookbooks/db/templates/default/cron.erb @@ -1,4 +1,4 @@ #!/bin/sh -# Cleanup archive directory - keep 3 weeks of WALs -find -L /store/postgresql/archive -mtime +21 -print0 | xargs -0r rm +# Cleanup archive directory - keep 2 weeks of WALs +find -L /store/postgresql/archive -mtime +14 -print0 | xargs -0r rm -- 2.43.2