postgres-operator icon indicating copy to clipboard operation
postgres-operator copied to clipboard

Q: Will it be possible to restore to previous minor version? "WAL backup"

Open Samusername opened this issue 3 years ago • 2 comments

How do you see following? Q: Will it be possible to restore to a backup of previous minor version of Postgres?

From "WAL backups". WAL archiving / basebackups: https://postgres-operator.readthedocs.io/en/latest/administrator/#wal-archiving-and-physical-basebackups

Of course, we first scratch install Patroni DB cluster to previous minor version. Then, after that, we would restore from certain point of time (from a certain "basebackup" etc), where that previous minor version was in use. Or then we could use cloning, etc., if "simple restore" would not work.

( I have my possible "guess" answers, but I am trying to verify. )

Side note: For major versions, there is separate folder. (E.g. "13" and "14".)

2nd question, does someone know: is wal-g nowadays stabile? It was not, a year ago.

Samusername avatar Jun 02 '22 00:06 Samusername

"Restore in place" has some steps,

https://github.com/zalando/postgres-operator/blob/master/docs/user.md

spec:

[...]

clone: cluster: "acid-minimal-cluster" # the same as metadata.name above! uid: "<original_UID>" timestamp: "2022-04-01T10:11:12.000+00:00"

Samusername avatar Jun 02 '22 19:06 Samusername

Try clone section with s3_wal_path pointing to WAL location of previous major version.

FxKu avatar Jun 04 '22 09:06 FxKu