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 pg_probackup plugin#92

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 9 commits intomasterfromadd-pg-probackup-plugin
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from1 commit
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
PrevPrevious commit
Code style fixes
  • Loading branch information
vshepard committedJan 18, 2024
commitc35ecc6a6840834a926a5d00e1d5b4e00749c5a1
5 changes: 2 additions & 3 deletionstestgres/plugins/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,6 @@
from pg_probackup2.storage.fs_backup import FSTestBackupDir
from pg_probackup2.storage.s3_backup import S3TestBackupDir


__all__ = [
"ProbackupApp", "ProbackupException", "init_params", "FSTestBackupDir", "S3TestBackupDir", "GDBobj"
]
"ProbackupApp", "ProbackupException", "init_params", "FSTestBackupDir", "S3TestBackupDir", "GDBobj"
]
21 changes: 9 additions & 12 deletionstestgres/plugins/pg_probackup2/pg_probackup2/app.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,7 +17,7 @@

warning = """
Wrong splint in show_pb
Original Header:
Original Header:f
{header}
Original Body:
{body}
Expand DownExpand Up@@ -139,14 +139,12 @@ def run(self, command, gdb=False, old_binary=False, return_id=True, env=None,
def init(self, options=None, old_binary=False, skip_log_directory=False, expect_error=False, use_backup_dir=True):
if options is None:
options = []
return self.run([
'init',
] + options,
old_binary=old_binary,
skip_log_directory=skip_log_directory,
expect_error=expect_error,
use_backup_dir=use_backup_dir
)
return self.run(['init'] + options,
old_binary=old_binary,
skip_log_directory=skip_log_directory,
expect_error=expect_error,
use_backup_dir=use_backup_dir
)

def add_instance(self, instance, node, old_binary=False, options=None, expect_error=False):
if options is None:
Expand DownExpand Up@@ -545,7 +543,6 @@ def show_archive(
break

if tli > 0:
timeline_data = None
for timeline in instance_timelines:
if timeline['tli'] == tli:
return timeline
Expand DownExpand Up@@ -674,7 +671,7 @@ def set_archiving(
archive_command += ' --remote-proto=ssh --remote-host=localhost'

if init_params.archive_compress and compress:
archive_command += ' --compress-algorithm='+init_params.archive_compress
archive_command += ' --compress-algorithm=' +init_params.archive_compress

if overwrite:
archive_command += ' --overwrite'
Expand DownExpand Up@@ -758,8 +755,8 @@ def load_backup_class(fs_type):
if root not in sys.path:
sys.path.append(root)
from pg_probackup2.storage.s3_backup import S3TestBackupDir

fs_backup_class = S3TestBackupDir

def build_backup_dir(self, backup='backup'):
return fs_backup_class(rel_path=self.rel_path, backup=backup)

View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,13 +6,12 @@
from minio import Minio
from minio.deleteobjects import DeleteObject
import urllib3
from .fs_backup import TestBackupDir

root = os.path.realpath(os.path.join(os.path.dirname(__file__), '../..'))
if root not in sys.path:
sys.path.append(root)

from .fs_backup import TestBackupDir

# Should fail if either of env vars does not exist
host = os.environ['PG_PROBACKUP_S3_HOST']
port = os.environ['PG_PROBACKUP_S3_PORT']
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp