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

Commit6b15b7b

Browse files
[create_archive_get] Function testgres_pg_probackup2 archive-get added (#112)
1 parent1f7343d commit6b15b7b

File tree

1 file changed

+11
-0
lines changed
  • testgres/plugins/pg_probackup2/pg_probackup2

1 file changed

+11
-0
lines changed

‎testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,5 +762,16 @@ def archive_push(self, instance, node, wal_file_name, wal_file_path=None, option
762762
cmd=cmd+ ['--wal-file-path={0}'.format(wal_file_path)]
763763
returnself.run(cmd+options,expect_error=expect_error)
764764

765+
defarchive_get(self,instance,wal_file_name,wal_file_path,options=None,expect_error=False):
766+
ifoptionsisNone:
767+
options= []
768+
cmd= [
769+
'archive-get',
770+
'--instance={0}'.format(instance),
771+
'--wal-file-name={0}'.format(wal_file_name),
772+
'--wal-file-path={0}'.format(wal_file_path),
773+
]
774+
returnself.run(cmd+options,expect_error=expect_error)
775+
765776
defbuild_backup_dir(self,backup='backup'):
766777
returnfs_backup_class(rel_path=self.rel_path,backup=backup)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp