You are looking at the documentation of a prior release. To read the documentation of the latest release, please visit here.

New to KubeDB? Please start here.

Continuous Archiving with WAL-G

KubeDB supports continuous archiving of PostgreSQL WAL files using WAL-G . You can use s3, gcs, azure, swift, MinIO, or local storage to store the WAL files.

What is Continuous Archiving

PostgreSQL maintains a write ahead log (WAL) in the pg_xlog/ subdirectory of the cluster’s data directory. The existence of the log makes it possible to use a third strategy for backing up databases and if recovery is needed, restore from the backed-up WAL files to bring the system back to last known state.

To know more about continuous archiving, please refer to the ofiicial postgres document on this topic.

Continuous Archiving Setup

Following additional parameters are set in postgresql.conf for primary server

archive_command = 'wal-g wal-push %p'
archive_timeout = 60

List of supported Cloud Destination for PostgresVersion CRDs

NameVersionS3MinIOGCSAzureSwiftLocal
9.6-v29.6
9.6.7-v29.6.7
10.2-v210.2
10.610.6
11.111.1
9.6-v39.6
9.6.7-v39.6.7
10.2-v310.2
10.6-v110.6
11.1-v111.1
9.6-v49.6
9.6.7-v49.6.7
10.2-v410.2
10.6-v210.6
11.1-v211.1
11.211.2
9.6-v59.6
9.6.7-v59.6.7
10.2-v510.2
10.6-v310.6
11.1-v311.1
11.2-v111.2

Next Steps