Backup and restore a database cluster’s data and WAL files to a specific point in time.
NoteGreenplum Disaster Recovery relies on the
gp_pitr
extension, which is automatically installed in Greenplum Database 6.22 and later. See thegp_pitr
reference page for details.
gpdr <command> [<options>]
gpdr backup
gpdr configure
gpdr create-restore-point
gpdr expire
gpdr info
gpdr monitor
gpdr promote
gpdr restore
gpdr --debug
gpdr {help | -h | --help}
gpdr --quiet
gpdr --verbose
The gpdr
utility lets you back up, and restore to a specific point in time, a cluster's physical data and WAL archive files. You may back up to four types of systems: Amazon S3, Posix-based systems (NFS), Google Cloud Platform, or a local filesystem. The utility supports both full and incremental backups, and allows you to specify named restore points that govern from what point in time data must be restored from the archived data.
It includes a number of commands:
Command | Description |
---|---|
backup | Back up all of the segments of the database cluster. |
configure | Configure the database cluster for backup or restore. |
create-restore-point | Create an explicit restore point. |
expire | Designate a backup as expired and delete it, by setting the backup's expiration date to now |
help | Display command help. |
info | Retrieve information about all backups, restored backups, and restore points in the repository. |
monitor | Monitor and report on backup progress. |
promote | Trigger the promotion of the recovery cluster and make it queryable. Promotion is a prerequisite to designating the recovery cluster as the primary cluster. |
restore | Restore all database segments using the specified backup and restore point. |
--debug
gpdr
prints both verbose and debugging-related messages.
-h | --help
Displays a help message for the gpdr
command. For help on a specific gpdr
command, enter gpdr [command] --help
. For example:
$ gpdr expire --help
--quiet
gpdr
suppresses non-warning, non-error log messages.
--verbose
gpdr
prints verbose log messages.
Show help for a specific command
gpdr create-restore-point --help
gpdr backup, gpdr configure, gpdr create-restore-point, gpdr expire, gpdr info, gpdr monitor, gpdr promote, gpdr restore