Configure the database cluster for backup or restore.

Synopsis

gpdr configure backup --config-file <pathname>

gpdr configure restore --config-file <pathname> { --recovery-cluster-config-file <pathname> | --use-existing-cluster }

gpdr configure validate 

gpdr configure { -h | --help }

Description

The gpdr configure backup command configures the primary cluster for backup.

Note

The primary cluster automatically restarts as part of gpdr configure backup.

The gpdr configure restore command configures the recovery cluster for restore.

The gpdr configure validate command validates that the primary cluster has been configured correctly for archiving and backups.

Options

--config-file
Specifies the location of the configuration file that governs where gpdr should put ( configure backup) or look for ( configure restore) backup files and WAL archive files. Template files can be found in /usr/local/gpdr/templates.
--recovery-cluster-config-file
Passed to gpdr configure restore. Tells Greenplum Disaster Recovery to initialize a new cluster to use as the recovery cluster. Specifies the location of the configuration file that governs what the new cluster's configuration should look like after a restore, including such details as datadirs, port numbers, and hostnames, among other things. Template files can be found in /usr/local/gpdr/templates. Cannot be passed with the --use-existing-cluster option.
--use-existing-cluster
Passed to gpdr configure restore. Tells Greenplum Disaster Recovery to use the existing cluster as the recovery cluster. Cannot be passed with the --recovery-cluster-config-file option.
-h | --help
Displays a help message for the gpdr configure command.

Examples

Specify the location of the configuration file for configuring backup behavior.

gpdr configure backup --config-file $HOME/config.yml

Tell GPDR to restore by spinning up a new recovery cluster, using the configuration file specified in $HOME/recovery-cluster-config.yml.

$ gpdr configure restore --config-file $HOME/config.yml --recovery-cluster-config-file $HOME/recovery-cluster-config.yml

Tell GPDR to restore using the existing cluster.

$ gpdr configure restore --config-file $HOME/config.yml --use-existing cluster

See Also

Configuring Disaster Recovery Behavior

check-circle-line exclamation-circle-line close-line
Scroll to top icon