-
Notifications
You must be signed in to change notification settings - Fork 86
Problem with restore from backup created from replica. #616
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hello again! I found root cause why when I restore backup maked from replica, I get this error. Reason in pg_control file.
This file looks like file copied from master server, not from replica. I checked this theory on my another server, and it approved (when I maked backup from replica from another clusters, in backup files i found pg_control copied from replica). Than I tried copy pg_control manualy from replica after backup starting. I attached content of this file:
And when I change "original" backuped pg_control (look first code block in this message) to manualy copied pg_control (look second code block in this message) - backup restored and started correctly. Also after restoing backup i checked that data doesn't have corruption. In this cluster checksums doesn't enabled, but I Could you help me please found reason why when i make backup I got incorrect pg_control? And how I can fix it? |
There is no way inside of pg_probackup to copy single file from other host. I believe, all files were copied from master, and WAL were streamed from slave. That is because |
Uh oh!
There was an error while loading. Please reload this page.
Hello! I have a problem with restore backups, witch was make from stand-by server. I have next configuration:
Master-replica based on patroni.
Backup server for creating and testing backups.
If i create backup from master, they restored correctly, but if i create backup from replica, when backup restored and i try start postgresql, i got next error:
Both postgresql servers has identical cofiguration:
Can you please help me with this problem?
P.S. command for creating backup:
command for restoring backup:
The text was updated successfully, but these errors were encountered: