testgres-pg-probackup2 0.3.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/PKG-INFO +1 -1
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/pg_probackup2/app.py +9 -2
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/setup.py +1 -1
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/testgres_pg_probackup2.egg-info/PKG-INFO +1 -1
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/README.md +0 -0
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/pg_probackup2/__init__.py +0 -0
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/pg_probackup2/gdb.py +0 -0
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/pg_probackup2/init_helpers.py +0 -0
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/pg_probackup2/storage/__init__.py +0 -0
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/pg_probackup2/storage/fs_backup.py +0 -0
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/setup.cfg +0 -0
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/testgres_pg_probackup2.egg-info/SOURCES.txt +0 -0
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/testgres_pg_probackup2.egg-info/dependency_links.txt +0 -0
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/testgres_pg_probackup2.egg-info/requires.txt +0 -0
- {testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/testgres_pg_probackup2.egg-info/top_level.txt +0 -0
|
@@ -571,7 +571,7 @@ class ProbackupApp:
|
|
|
571
571
|
backup_list.append(backup)
|
|
572
572
|
|
|
573
573
|
if backup_id is not None:
|
|
574
|
-
|
|
574
|
+
raise RuntimeError("Failed to find backup with ID: {0}".format(backup_id))
|
|
575
575
|
|
|
576
576
|
return backup_list
|
|
577
577
|
else:
|
|
@@ -629,7 +629,7 @@ class ProbackupApp:
|
|
|
629
629
|
specific_record[name.strip()] = var
|
|
630
630
|
|
|
631
631
|
if not specific_record:
|
|
632
|
-
|
|
632
|
+
raise RuntimeError("Failed to find backup with ID: {0}".format(backup_id))
|
|
633
633
|
|
|
634
634
|
return specific_record
|
|
635
635
|
|
|
@@ -778,6 +778,13 @@ class ProbackupApp:
|
|
|
778
778
|
log_level=False, archive_timeout=False,
|
|
779
779
|
custom_archive_command=None):
|
|
780
780
|
|
|
781
|
+
# check instance existing
|
|
782
|
+
instances_json = self.show(instance=None, as_json=True, expect_error=False, as_text=True)
|
|
783
|
+
instances_data = json.loads(instances_json)
|
|
784
|
+
if not any(inst_data.get('instance') == instance for inst_data in instances_data):
|
|
785
|
+
raise RuntimeError("Instance '{0}' does not exist. " \
|
|
786
|
+
"Please add the instance first using add_instance() or init_pb_node().".format(instance))
|
|
787
|
+
|
|
781
788
|
# parse postgresql.auto.conf
|
|
782
789
|
options = {}
|
|
783
790
|
if replica:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/pg_probackup2/storage/__init__.py
RENAMED
|
File without changes
|
{testgres_pg_probackup2-0.3.0 → testgres_pg_probackup2-0.4.0}/pg_probackup2/storage/fs_backup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|