Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e06f91 commit eb04762Copy full SHA for eb04762
testgres/backup.py
@@ -33,7 +33,8 @@ def __init__(self,
33
node,
34
base_dir=None,
35
username=None,
36
- xlog_method=XLogMethod.fetch):
+ xlog_method=XLogMethod.fetch,
37
+ options=None):
38
"""
39
Create a new backup.
40
@@ -43,6 +44,8 @@ def __init__(self,
43
44
username: database user name.
45
xlog_method: none | fetch | stream (see docs)
46
47
+ if not options:
48
+ options = []
49
self.os_ops = node.os_ops
50
if not node.status():
51
raise BackupException('Node must be running')
@@ -77,6 +80,7 @@ def __init__(self,
77
80
"-D", data_dir,
78
81
"-X", xlog_method.value
79
82
] # yapf: disable
83
+ _params += options
84
execute_utility(_params, self.log_file)
85
86
def __enter__(self):
0 commit comments