Back up all the segments of a database cluster.
gpdr backup {-t | --type} [--buffer-size <string>] [--bundle]
[--bundle-limit <string>] [--bundle-size <string>]
[--compress-level <int>] [--compress-level-network <int>] [--compress-type <string>] [create-restore-point-timeout-duration <duration>]
[--process-max <int>] [--storage-upload-chunk-size <string>]
gpdr backup { -h | --help }
The gpdr backup
command backs up all of the segments of the primary cluster. Backups can be incremental or full, as specified with the -t | --type
option passed to the command.
t | --type { full | incr }
full
for full or
incr
for incremental. The incremental backup will be based on the most recent full or incremental backup.
--buffer-size <string>
--bundle
gpdr backup
to combine smaller files to reduce the total number of files written to the repository. Writing fewer files is generally more efficient, especially on object stores such as S3.
--bundle-limit <string>
--bundle-limit
, you must also pass in the
bundle
option. The range is 8KiB-1PiB. The default is 2MiB.
--bundle-size <string>
--bundle-size
, you must also pass in the
bundle
option. The range is 1MiB-1PiB. The default is 20MiB.
--compress-level <int>
--compress-type
is a value other than
none
. The range is 0-9. The default levels vary according to the
--compress-type
specified:
If compress-type
is bz2
, the default is 9.
If compress-type
is gz
, the default is 6.
If compress-type
is lz4
, the default is 1.
If compress-type
is zst
, the default is 3.
--compress-level-network <int>
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. The range is 0-9. The default is 3.
--compress-type <string>
none
,
bz2
,
gz
,
lz4
or
zst
. The default is
gz
.
create-restore-point-timeout <duration>
30m0s
. The default is
596523h14m7s
.
--process-max <int>
--process-max
so high that it negatively affects database performance. The range of accepted values is 1-999. The default is 1.
--storage-upload-chunk-size <string>
process-max
values will lead to more memory being consumed overall. The range is 64KiB-1TiB. The default chunk size value varies by storage type:
If the storage type is S3, the default value is 5MiB.
If the storage type is GCS, the default value is 4MiB.
-h | --help
gpdr backup
command.
Execute a full backup:
$ gpdr backup --type full
Execute an incremental backup:
$ gpdr backup --type incr