-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to restore from backup using Point-in-time-Recovery (PITR) #1886
Comments
Doing a restore, the PostgreSQL cluster will go down for a time period. This is a destructive action (as both the command and documentation warn). That said, v4.5.0 makes significant improvements to the |
Thanks for the quick response @jkatz. We are able to resolve this issue. During my testing I was not paying attention to timestamp format required by pgbackrest. The restore worked with proper timestamp value. By any chance do you know how to restore just by using labels and not timestamp, something like:
|
I had assumed you could restore to just a label (and not a timestamp) by using:
However, the above configuration gives the error:
When I leave out the
So it seems that the operator is blocking me from specifying How then should someone go about "restoring to just a label, not using a timestamp"? (Isn't that what the |
Well, I wasn't able to get the
It adds another step to the restore process, but it gets the job done for now. |
** Which example are you working with? **
We have below pgo version:
pgo client version 4.3.2
pgo-apiserver version 4.3.2
What is the current behavior?
We have below two full backups:
When trying to restore to first backup i.e 20200915-132804F restore not happening and PostgreSQL cluster goes down. following this document - https://access.crunchydata.com/documentation/postgres-operator/latest/pgo-client/common-tasks/#disaster-recovery-backups-restores
$ pgo restore awx-stg -n pgo --pitr-target=" 2020-09-15 18:58:04" --backup-opts="--type=name --target-action=promote --set=20200915-132804F"
Is it because we are not passing time in right way? what is expected? Don't see any error message in restor pod log saying time stamp not in required format something like that
What is the expected behavior?
Cluster should restore to previous backup
The text was updated successfully, but these errors were encountered: