Configure the database cluster for backup or restore.
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 }
The gpdr configure backup
command configures the primary cluster for backup.
NoteThe 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.
--config-file
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
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
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
gpdr configure
command.
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