WAL-G
Last updated
Was this helpful?
Last updated
Was this helpful?
is a simple and efficient archival restoration tool for PostgreSQL that simplifies and can store backups in S3, Google Cloud Storage, Azure, Swift, remote host (via SSH), or local file system.
In order to set up continuous backups, you need to do the following:
wal-g
access to For example. If you use GCP GCS you should configure ENV Variables
For taking a backup you should run wal-g backup-push
inside the AidboxDb container
You can always restore the database from base backup if your database is corrupted.
This will delete all but 30 latest backups.
Configure WAL-G access to external storage
Download backup wal-g
backup-pull
$PGDATA
Configure the wal-g wal-fetch
restore command
Start Postgres
Postgres download all the missing logs and read them on start.
You can configure incremental backups with env variable WALG_DELTA_MAX_STEPS
.
So the backup will be faster, but the recovery process will take longer.
WAL-G is not a replacement of pg_dump
. pg_dump
is used to create a logical dump of one or several DBs in cluster.
WAL-G doesn't schedule backup automatically.
WAL-G includes a command that checks backup integrity.