mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-04-25 05:35:57 +03:00
[GH-ISSUE #104] Restore with open database #82
Labels
No labels
bug
confirmed next step
duplicate
enhancement
help wanted
in progress
in progress
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pgbackweb#82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Brandejs on GitHub (Feb 24, 2025).
Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/104
Hi.
I came across your instrument and I love it. Thank you in advance for all the hard work you've done with this.
I would like to make one comment here about restoration.
If I am creating a backup of the database (including the schema). So when I perform a restore, the UI shows that the restore went fine, even though it didn't.
--data-only=no --schema-only=no --clean=yes --if-exists-no --create=yes --no-comments=yesOne of the erorr I'm struggling with is.
This essentially makes the restore fail. And no restore will occur. But in the UI it is shown as a success.
Ideally, it would be possible to terminate the active connection before starting the recovery?
eg.
@svenczbg commented on GitHub (Apr 12, 2025):
Restoring into an open DB can be done with the following settings.
1.) Create the dump with without "--create" flag
pg_dump 'connection-string' --blobs --clean --file dump.tar --format=tar2.) Restore the dump with pg_restore:
pg_restore -d 'connection-string' --clean --format=tar dump.tar@MrBrax commented on GitHub (Oct 25, 2025):
so this tool is essentially useless because it can't restore a database? been trying for an hour with this tool and the dump sql file but postgres just will not accept it. nothing happens to the database when restoring