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

Commitdaa2b7b

Browse files
authored
Add maintain command (#175)
1 parentac782bb commitdaa2b7b

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
@@ -842,5 +842,22 @@ def archive_get(self, instance, wal_file_name, wal_file_path, options=None, expe
842842
]
843843
returnself.run(cmd+options,expect_error=expect_error)
844844

845+
defmaintain(
846+
self,instance=None,backup_id=None,
847+
options=None,old_binary=False,gdb=False,expect_error=False
848+
):
849+
ifoptionsisNone:
850+
options= []
851+
cmd_list= [
852+
'maintain',
853+
]
854+
ifinstance:
855+
cmd_list+= ['--instance={0}'.format(instance)]
856+
ifbackup_id:
857+
cmd_list+= ['-i',backup_id]
858+
859+
returnself.run(cmd_list+options,old_binary=old_binary,gdb=gdb,
860+
expect_error=expect_error)
861+
845862
defbuild_backup_dir(self,backup='backup'):
846863
returnfs_backup_class(rel_path=self.rel_path,backup=backup)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp