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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy