pgbasebackup-restore
The pgbasebackup-restore running mode restores a database using a pg_basebackup backup.  Specifically, the container
uses rsync to copy a pg_basebackup backup into a specified /pgdata directory.
The pgbasebackup-restore mode does not support point-in-time-recovery (PITR). If you would to create an environment that allows you to use PostgreSQL’s point-in-time-recovery capabilities, please use the crunchy-backrest container with a corresponding pgBackRest repository.
MODE: pgbasebackup-restore
Environment Variables
Required
| Name | Default | Description | 
|---|---|---|
| MODE | None | Set to pgbasebackup-restoreto run aspg_basebackuprestore job | 
| BACKUP_PATH | None | The path under the /backupvolume containing thepg_basebackupthat will be used for the restore (/backupshould be excluded when providing the path) | 
| PGDATA_PATH | None | The path under the /pgdatavolume containing the restored database (/pgdatashould be excluded when providing the path).  The path specified will be created if it does not already exist. | 
Optional
| Name | Default | Description | 
|---|---|---|
| RSYNC_SHOW_PROGRESS | false | If set to true, the--progressflag will be enabled when running rysnc to copy the backup files during the restore | 
| CRUNCHY_DEBUG | false | Set this to true to enable debugging in logs. Note: this mode can reveal secrets in logs. |