We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4c037e commit 8426d2aCopy full SHA for 8426d2a
postgres-appliance/scripts/postgres_backup.sh
@@ -44,8 +44,8 @@ nice -n 5 $WAL_E backup-push "$PGDATA" "${POOL_SIZE[@]}"
44
# Collect all backups and sort them by modification time
45
mapfile -t backup_records < <(wal-g backup-list 2>/dev/null |
46
sed '0,/^\(backup_\)\?name\s*\(last_\)\?modified\s*/d' |
47
- sort -k2r |
48
- awk '{ print $1, $2 }'
+ awk '{ print $1, $2 }' |
+ sort -k2r
49
)
50
51
# leave at least 2 days base backups and/or 2 backups
0 commit comments