Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[create_archive_push] archive_push_command in testgres_pg_probackup added#111

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
z-kasymalieva merged 1 commit intomasterfromcreate_archive_push
Feb 15, 2024
Merged
Changes fromall commits
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
14 changes: 14 additions & 0 deletionstestgres/plugins/pg_probackup2/pg_probackup2/app.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -748,5 +748,19 @@ def load_backup_class(fs_type):

return getattr(module, class_name)

def archive_push(self, instance, node, wal_file_name, wal_file_path=None, options=None, expect_error=False):
if options is None:
options = []
cmd = [
'archive-push',
'--instance={0}'.format(instance),
'--wal-file-name={0}'.format(wal_file_name),
]
if wal_file_path is None:
cmd = cmd + ['--wal-file-path={0}'.format(os.path.join(node.data_dir, 'pg_wal'))]
else:
cmd = cmd + ['--wal-file-path={0}'.format(wal_file_path)]
return self.run(cmd + options, expect_error=expect_error)

def build_backup_dir(self, backup='backup'):
return fs_backup_class(rel_path=self.rel_path, backup=backup)

[8]ページ先頭

©2009-2025 Movatter.jp