Skip to main content

CI Status PyPI package version PyPI python versions

testgres-pg_probackup2

Control and testing utility for pg_probackup2. Python 3.7+ is supported.

Installation

To install testgres-pg_probackup, run:

pip install testgres-pg_probackup

We encourage you to use virtualenv for your testing environment. The package requires testgres.

Usage

Environment variables

Variable Required Default value Description
PGPROBACKUP_TMP_DIR No tests/tmp_dirs The root of the temporary directory hierarchy where tests store data and logs. Relative paths start from the current working directory.
PG_PROBACKUP_TEST_BACKUP_DIR_PREFIX No Temporary test hierarchy Prefix of the test backup directories. Must be an absolute path. Use this variable to store test backups in a location other than the temporary test hierarchy.
PG_PROBACKUP_VALGRIND No Not set Run pg_probackup through valgrind if the variable is set to 'y'. Setting PG_PROBACKUP_VALGRIND_SUP (see below) to any value enables valgrind just like setting PG_PROBACKUP_VALGRIND=y would do.
PG_PROBACKUP_VALGRIND_SUP No Not set Specify the path to a valgrind suppression file. If the variable is not set then a file named "valgrind.supp" is searched for in the current working directory (normally the root of pg_probackup repository). Setting PG_PROBACKUP_VALGRIND_SUP to any value enables valgrind just like setting PG_PROBACKUP_VALGRIND=y (see above) would do.

See Testgres on how to configure a custom Postgres installation using PG_CONFIG and PG_BIN environment variables.

Examples

Here is an example of what you can do with testgres-pg_probackup2:

# You can see full script here plugins/pg_probackup2/pg_probackup2/tests/basic_test.py
def test_full_backup(self):
    # Setting up a simple test node
    node = self.pg_node.make_simple('node', pg_options={"fsync": "off", "synchronous_commit": "off"})

    # Initialize and configure Probackup
    self.pb.init()
    self.pb.add_instance('node', node)
    self.pb.set_archiving('node', node)

    # Start the node and initialize pgbench
    node.slow_start()
    node.pgbench_init(scale=100, no_vacuum=True)

    # Perform backup and validation
    backup_id = self.pb.backup_node('node', node)
    out = self.pb.validate('node', backup_id)

    # Check if the backup is valid
    self.assertIn(f"INFO: Backup {backup_id} is valid", out)

Authors

Postgres Professional

Metadata

Release files for testgres-pg-probackup2 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for testgres-pg-probackup2 0.11.0
File Size Uploaded Provenance Actions
testgres_pg_probackup2-0.11.0.tar.gz 20.4 kB With provenance Details for testgres_pg_probackup2-0.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for testgres-pg-probackup2 0.11.0
File Interpreter ABI Platform Actions
testgres_pg_probackup2-0.11.0-py3-none-any.whl Python 3 none any Details for testgres_pg_probackup2-0.11.0-py3-none-any.whl

Total release size: 38.6 kB

Release files / testgres_pg_probackup2-0.11.0.tar.gz

Download URL testgres_pg_probackup2-0.11.0.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
10b95ebecbe9414488d054d971a8980f76770a7952466f57cf9b627223ad07ef
BLAKE2b-256 checksum
How to use checksums
43575240c17d17f6e14dcc728a300110ea48d85c825c9b8d96cdec9009a4f9b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / testgres_pg_probackup2-0.11.0-py3-none-any.whl

Download URL testgres_pg_probackup2-0.11.0-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a5439d85feb51cc562141f9dbe2c476d3200ca27fc36e59ca327b3408315f06
BLAKE2b-256 checksum
How to use checksums
62955d4b6756d9e31d6427ad8cd018acf9bedf88a11d67e6d3852df9d6d56922
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for testgres-pg-probackup2 0.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for testgres_pg_probackup2-0.11.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page