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

Commit34c8079

Browse files
author
vshepard
committed
Add maintain command
1 parent95e6ad0 commit34c8079

File tree

1 file changed

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

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,5 +811,22 @@ def archive_get(self, instance, wal_file_name, wal_file_path, options=None, expe
811811
]
812812
returnself.run(cmd+options,expect_error=expect_error)
813813

814+
defmaintain(
815+
self,instance=None,backup_id=None,
816+
options=None,old_binary=False,gdb=False,expect_error=False
817+
):
818+
ifoptionsisNone:
819+
options= []
820+
cmd_list= [
821+
'maintain',
822+
]
823+
ifinstance:
824+
cmd_list+= ['--instance={0}'.format(instance)]
825+
ifbackup_id:
826+
cmd_list+= ['-i',backup_id]
827+
828+
returnself.run(cmd_list+options,old_binary=old_binary,gdb=gdb,
829+
expect_error=expect_error)
830+
814831
defbuild_backup_dir(self,backup='backup'):
815832
returnfs_backup_class(rel_path=self.rel_path,backup=backup)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp