-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement tablespace remapping for barman-cloud-restore
Each tablespace has a name, an oid, and a location (directory), and there is a symbolic link from $PGDATA/pg_tblspc/$oid to the location. barman-cloud-backup uploads a $oid.tar file for each tablespace, and records the properties of each tablespace in backup_info.tablespaces. Until now, barman-cloud-restore knew only how to download $oid.tar and extract its contents to the original location. Here we add a couple of new features: 1. You may optionally specify `--tablespace name:/new/location` to extract a given tablespace to a different location (you can repeat this option multiple times) 2. After downloading and extracting $oid.tar to the desired location, we now recreate the symbolic link from $PGDATA/pg_tblspc/$oid to that directory. Closes #343 Closes #330
- Loading branch information
Showing
3 changed files
with
64 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters