diff --git a/testgres/plugins/pg_probackup2/pg_probackup2/storage/fs_backup.py b/testgres/plugins/pg_probackup2/pg_probackup2/storage/fs_backup.py index d076432a..6c9d1463 100644 --- a/testgres/plugins/pg_probackup2/pg_probackup2/storage/fs_backup.py +++ b/testgres/plugins/pg_probackup2/pg_probackup2/storage/fs_backup.py @@ -43,7 +43,10 @@ class FSTestBackupDir(TestBackupDir): """ Backup directory. Usually created by running pg_probackup init -B """ def __init__(self, *, rel_path, backup): - self.path = os.path.join(init_params.tmp_path, rel_path, backup) + backup_prefix = os.environ.get('PG_PROBACKUP_TEST_BACKUP_DIR_PREFIX') + if backup_prefix and not os.path.isabs(backup_prefix): + raise Exception(f"PG_PROBACKUP_TEST_BACKUP_DIR_PREFIX must be an absolute path, current value: {backup_prefix}") + self.path = os.path.join(backup_prefix or init_params.tmp_path, rel_path, backup) self.pb_args = ('-B', self.path) def list_instance_backups(self, instance): 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