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

Commit6424451

Browse files
committed
[create_archive_push] archive_push_command in testgres_pg_probackup added
1 parent70d2f27 commit6424451

File tree

1 file changed

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

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,5 +748,19 @@ def load_backup_class(fs_type):
748748

749749
returngetattr(module,class_name)
750750

751+
defarchive_push(self,instance,node,wal_file_name,wal_file_path=None,options=None,expect_error=False):
752+
ifoptionsisNone:
753+
options= []
754+
cmd= [
755+
'archive-push',
756+
'--instance={0}'.format(instance),
757+
'--wal-file-name={0}'.format(wal_file_name),
758+
]
759+
ifwal_file_pathisNone:
760+
cmd=cmd+ ['--wal-file-path={0}'.format(os.path.join(node.data_dir,'pg_wal'))]
761+
else:
762+
cmd=cmd+ ['--wal-file-path={0}'.format(wal_file_path)]
763+
returnself.run(cmd+options,expect_error=expect_error)
764+
751765
defbuild_backup_dir(self,backup='backup'):
752766
returnfs_backup_class(rel_path=self.rel_path,backup=backup)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp