We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 937815a commit 39a6c8fCopy full SHA for 39a6c8f
postgres-appliance/scripts/postgres_backup.sh
@@ -55,7 +55,7 @@ while read -r name last_modified rest; do
55
# count how many backups will remain after we remove everything up to certain date
56
((LEFT=LEFT+1))
57
fi
58
-done < <($WAL_E backup-list 2> /dev/null | sed '0,/^name\s*\(last_\)\?modified\s*/d')
+done < <($WAL_E backup-list 2> /dev/null | sed '0,/^\(backup_\)\?name\s*\(last_\)\?modified\s*/d')
59
60
# we want keep at least N backups even if the number of days exceeded
61
if [ -n "$BEFORE" ] && [ $LEFT -ge $DAYS_TO_RETAIN ]; then
0 commit comments