Content-Length: 280692 | pFad | http://github.com/postgrespro/testgres/commit/daa2b7b146dc5ed41c34f7d75ec0b8dcb8db00bd

E3 Add maintain command (#175) · postgrespro/testgres@daa2b7b · GitHub
Skip to content

Commit daa2b7b

Browse files
authored
Add maintain command (#175)
1 parent ac782bb commit daa2b7b

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
return self.run(cmd + options, expect_error=expect_error)
844844

845+
def maintain(
846+
self, instance=None, backup_id=None,
847+
options=None, old_binary=False, gdb=False, expect_error=False
848+
):
849+
if options is None:
850+
options = []
851+
cmd_list = [
852+
'maintain',
853+
]
854+
if instance:
855+
cmd_list += ['--instance={0}'.format(instance)]
856+
if backup_id:
857+
cmd_list += ['-i', backup_id]
858+
859+
return self.run(cmd_list + options, old_binary=old_binary, gdb=gdb,
860+
expect_error=expect_error)
861+
845862
def build_backup_dir(self, backup='backup'):
846863
return fs_backup_class(rel_path=self.rel_path, backup=backup)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/testgres/commit/daa2b7b146dc5ed41c34f7d75ec0b8dcb8db00bd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy