Skip to content

Commit 8426d2a

Browse files
authored
fix sorting (#1150)
1 parent a4c037e commit 8426d2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgres-appliance/scripts/postgres_backup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ nice -n 5 $WAL_E backup-push "$PGDATA" "${POOL_SIZE[@]}"
4444
# Collect all backups and sort them by modification time
4545
mapfile -t backup_records < <(wal-g backup-list 2>/dev/null |
4646
sed '0,/^\(backup_\)\?name\s*\(last_\)\?modified\s*/d' |
47-
sort -k2r |
48-
awk '{ print $1, $2 }'
47+
awk '{ print $1, $2 }' |
48+
sort -k2r
4949
)
5050

5151
# leave at least 2 days base backups and/or 2 backups

0 commit comments

Comments
 (0)