Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Abs backup path #108

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

Merged
merged 6 commits into from
Feb 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Accept an absolute backup path
  • Loading branch information
postgres-dev committed Jan 29, 2024
commit fb0ee447ba830e00a281a926368f8598e9045c76
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ class FSTestBackupDir(TestBackupDir):

""" Backup directory. Usually created by running pg_probackup init -B <path>"""

def __init__(self, *, rel_path, backup):
self.path = os.path.join(init_params.tmp_path, rel_path, backup)
def __init__(self, *, path, backup):
if os.path.isabs(path):
self.path = os.path.join(path, backup)
else:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.path = os.path.join(backup_prefix or init_params.tmp_path, rel_path, backup)

self.path = os.path.join(init_params.tmp_path, path, backup)
self.pb_args = ('-B', self.path)

def list_instance_backups(self, instance):
Expand Down