Skip to content

Commit 34c8079

Browse files
author
vshepard
committed
Add maintain command
1 parent 95e6ad0 commit 34c8079

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

814+
def maintain(
815+
self, instance=None, backup_id=None,
816+
options=None, old_binary=False, gdb=False, expect_error=False
817+
):
818+
if options is None:
819+
options = []
820+
cmd_list = [
821+
'maintain',
822+
]
823+
if instance:
824+
cmd_list += ['--instance={0}'.format(instance)]
825+
if backup_id:
826+
cmd_list += ['-i', backup_id]
827+
828+
return self.run(cmd_list + options, old_binary=old_binary, gdb=gdb,
829+
expect_error=expect_error)
830+
814831
def build_backup_dir(self, backup='backup'):
815832
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