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

Add options to pg_basebackup#121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
demonolock merged 1 commit intomasterfromoptions-basebackup
May 7, 2024
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add options to pg_basebackup
  • Loading branch information
vshepard committedMay 7, 2024
commit2fc45d26dc216fd34cdc51d6d650724bf092f2c1
6 changes: 5 additions & 1 deletiontestgres/backup.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -33,7 +33,8 @@ def __init__(self,
node,
base_dir=None,
username=None,
xlog_method=XLogMethod.fetch):
xlog_method=XLogMethod.fetch,
options=None):
"""
Create a new backup.

Expand All@@ -43,6 +44,8 @@ def __init__(self,
username: database user name.
xlog_method: none | fetch | stream (see docs)
"""
if not options:
options = []
self.os_ops = node.os_ops
if not node.status():
raise BackupException('Node must be running')
Expand DownExpand Up@@ -77,6 +80,7 @@ def __init__(self,
"-D", data_dir,
"-X", xlog_method.value
] # yapf: disable
_params += options
execute_utility(_params, self.log_file)

def __enter__(self):
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp