Restore all database segments using the specified backup and the specified restore point.

Synopsis

gpdr restore -t | --type { full | incr | continuous } [ --backup-label <string> ] --restore-point <string> [--buffer-size <string>] [--compress-level-network <int>]
   [--process-max <int>] 

gpdr restore { -h | --help }

Description

The gpdr restore command restores all database segments using the specified backup and restore point.

Options

--backup-label string
Optional. The label of the backup to restore.
--restore-point string
The name of the restore point to restore up to. The restore point must have been created after the backup specified in the --backup-label option.
--buffer-size string
Optional. The buffer size for I/O operations. Greenplum Disaster Recovery uses buffer size for copy, compress, and other internal operations. Possible values include 16KiB, 32KiB, 64KiB, 128KiB, 256KiB, 512KiB, 1MiB, 2MiB, 4MiB, 8MiB or 16MiB. The default is 1 MiB.
--compress-level-network <int>
Optional. The network compression level when compress-type is set to none. Compression is used to reduce network traffic but can be disabled by setting compress-level-network to 0. When compress-type is not set to none compress-level-network is ignored and compress-level is used instead, so that the file is only compressed once. SSH compression is always disabled. The range is 0-9. The default is 3.
--process-max <int>
Optional. The maximum number of processes to use for data compression and transfer. Each process will perform compression and transfer to make the command run faster, but do not set --process-max so high that it negatively affects database performance. The range of accepted values is 1-999. The default is 1.

-t | --type { full | incr | continuous } : Specifies the type of restore to perform: full, incremental, or continuous.

-h | --help
Displays a help message for the gpdr restore command.

Examples

Execute a full restore:

$ gpdr restore --type full --restore-point 20221122-113051R

Execute an incremental restore:

$ gpdr restore --type incr --restore-point 20221122-113051R

Execute a continuous restore with a specific restore point:

$ gpdr restore --type continuous --restore-point 20221122-113051R

Execute a continuous restore with the latest available restore point:

$ gpdr restore --type continuous --restore-point latest

See Also

gpdr create-restore-point

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