Address "wal-g backup-list" order issue
Use backup-list --detail
to have the correct WAL-G backups orders.
Details: https://github.com/wal-g/wal-g/issues/694
In our situation (GCP bucket where backups older than 14d are
moved to another type of storage, getting modtime updated), we still have
incorrect backup-list
order, even for WAL-G 1.1
backup-list --detail
shows the correct order – by creation time.
Therefore we either need to use it (--detail
option)
or reorder the list explicitly as in https://ops.gitlab.net/gitlab-com/gl-infra/gitlab-restore/postgres-gprd/-/blob/master/bootstrap.sh#L191-196
Edited by Nikolay Samokhvalov