-
Notifications
You must be signed in to change notification settings - Fork 193
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
barman-cloud-backup Does not preserve pg_wal folder if it is a symbolic link / barman-wal-restore
does not create empty pg_wal folder
#327
Comments
Any update on this issue? |
I have a fix for this, which will be included in the 2.13 release. |
Thanks for the update. when 2.13 will be released? |
Next week. |
Thanks. We opended also at the same time for same kind link issue. is this covered on this release? |
Yes, it's WIP. |
amenonsen
added a commit
that referenced
this issue
Jul 21, 2021
If you run barman-cloud-backup on a data directory where pg_wal is a symlink, it doesn't include pg_wal in the uploaded tar files, and the pg_wal directory will not be created if you restore the backup. We fix this by creating pg_wal in the destination directory if it does not exist at the end of the backup. Closes #327
amenonsen
added a commit
that referenced
this issue
Jul 23, 2021
If you run barman-cloud-backup on a data directory where pg_wal is a symlink, it doesn't include pg_wal in the uploaded tar files, and the pg_wal directory will not be created if you restore the backup. We fix this by creating pg_wal (or pg_xlog, depending on the version) in the destination directory if it does not exist at the end of the backup. Closes #327
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
barman-cloud-backup
utility does not preserve thepg_wal / pg_xlog
folder when storing cloud objects, if the folder is a symbolic link. This is a fairly common configuration in Postgres clusters, and causesbarman-cloud-restore
to fail when attempting to restore WAL files, as the directory does not exist.While it is understandable for
barman-cloud-backup
not to follow symbolic links, it should either create an empty stub folder in the backup if such a link exists, orbarman-cloud-restore
should ensure apg_wal / pg_xlog
folder exists for restored WAL files to reside in. If one was not restored from the backup itself, Barman should create it.The text was updated successfully, but these errors were encountered: