Backup Policy
Design backup policies according to your needs
Pigsty uses pgBackRest to manage PostgreSQL backups, arguably the most powerful open-source backup tool in the ecosystem. It supports incremental/parallel backup and restore, encryption, MinIO/S3, and many other features. Pigsty configures backup functionality by default for each PGSQL cluster.
| Section | Content |
|---|---|
| Mechanism | Backup scripts, cron jobs, pgbackrest, repository and management |
| Policy | Backup strategy, disk planning, recovery window tradeoffs |
| Repository | Configuring backup repositories: local, MinIO, S3 |
| Admin | Common backup management commands |
| Restore | Restore to a specific point in time using playbooks |
| Example | Sandbox example: performing restore operations manually |
Pigsty makes every effort to provide a reliable PITR solution, but we accept no responsibility for data loss resulting from PITR operations. Use at your own risk. If you need professional support, please consider our professional services.
node_crontab: [ '00 01 * * * postgres /pg/bin/pg-backup full' ]
./pgsql-pitr.yml -e '{"pg_pitr": { "time": "2025-07-13 10:00:00+00" }}'
Design backup policies according to your needs
Backup scripts, cron jobs, backup repository and infrastructure
PostgreSQL backup storage repository configuration
Managing backup repositories and backups
Restore PostgreSQL from backups
How to use PITR to create a new PostgreSQL cluster and restore to a specified point in time?
Clone instances and perform point-in-time recovery on the same machine
How to clone an existing database within a PostgreSQL cluster using instant XFS cloning
Manually perform PITR following prompt scripts in sandbox environment
Was this page helpful?
Thanks for the feedback! Please let us know how we can improve.
Sorry to hear that. Please let us know how we can improve.