barman backup#
Synopsis#
backup
[ --bwlimit KBPS ]
[ { -h | --help } ]
[ --incremental BACKUP_ID ]
[ --immediate-checkpoint ]
[ { -j | --jobs } PARALLEL_WORKERS ]
[ --jobs-start-batch-period PERIOD ]
[ --jobs-start-batch-size SIZE ]
[ --keepalive-interval SECONDS ]
[ --manifest ]
[ --name NAME ]
[ --no-immediate-checkpoint ]
[ --no-manifest ]
[ --no-retry ]
[ --retry-sleep SECONDS ]
[ --retry-times NUMBER ]
[ --reuse-backup { off | copy | link } ]
[ { --wait | -w } ]
[ --wait-timeout SECONDS ]
SERVER_NAME [ SERVER_NAME ... ]
Description#
Execute a PostreSQL server backup. Barman will use the parameters specified in the Global
and Server configuration files. Specify all shortcut instead of the server name to
execute backups from all servers configured in the Barman node. You can also specify
multiple server names in sequence to execute backups for specific servers.
Parameters#
SERVER_NAMEName of the server in barman node.
--bwlimitSpecify the maximum transfer rate in kilobytes per second. A value of 0 indicates no limit. This setting overrides the
bandwidth_limitconfiguration option.-h/--helpShow a help message and exit. Provides information about command usage.
--incrementalExecute a block-level incremental backup. You must provide a
BACKUP_IDor a shortcut to a previous backup, which will serve as the parent backup for the incremental backup.Note
The backup to be and the parent backup must have
backup_method=postgres.--immediate-checkpointForces the initial checkpoint to be executed as soon as possible, overriding any value set for the
immediate_checkpointparameter in the configuration file.-j/--jobsSpecify the number of parallel workers to use for copying files during the backup. This setting overrides the
parallel_jobsparameter if it's specified in the configuration file.--jobs-start-batch-periodSpecify the time period, in seconds, for starting a single batch of jobs. This value overrides the
parallel_jobs_start_batch_periodparameter if it is set in the configuration file. The default is1second.--jobs-start-batch-sizeSpecify the maximum number of parallel workers to initiate in a single batch. This value overrides the
parallel_jobs_start_batch_sizeparameter if it is defined in the configuration file. The default is10workers.--keepalive-intervalSpecify an interval, in seconds, for sending a heartbeat query to the server to keep the libpq connection active during a Rsync backup. The default is
60seconds. A value of0disables the heartbeat.--manifestForces the creation of a backup manifest file upon completing a backup. Overrides the
autogenerate_manifestparameter from the configuration file. Applicable only to rsync backup strategy.--nameSpecify a friendly name for this backup which can be used in place of the backup ID in barman commands.
--no-immediate-checkpointForces the backup to wait for the checkpoint to be executed overriding any value set for the
immediate_checkpointparameter in the configuration file.--no-manifestDisables the automatic creation of a backup manifest file upon completing a backup. This setting overrides the
autogenerate_manifestparameter from the configuration file and applies only to rsync backup strategy.--no-retryThere will be no retry in case of an error. It is the same as setting
--retry-times 0.--retry-sleepSpecify the number of seconds to wait after a failed copy before retrying. This setting applies to both backup and recovery operations and overrides the
basebackup_retry_sleepparameter if it is defined in the configuration file.--retry-timesSpecify the number of times to retry the base backup copy in case of an error. This applies to both backup and recovery operations and overrides the
basebackup_retry_timesparameter if it is set in the configuration file.--reuse-backupOverrides the behavior of the
reuse_backupoption configured in the configuration file. The possible values are:off: Do not reuse the last available backup.copy: Reuse the last available backup for a server and create copies of unchanged files (reduces backup time).link(default): Reuse the last available backup for a server and create hard links to unchanged files (saves both backup time and space).
Note
This will only have any effect if the last available backup was executed with
backup_method=rsync.--wait/-wWait for all necessary WAL files required by the base backup to be archived.
--wait-timeoutSpecify the duration, in seconds, to wait for the required WAL files to be archived before timing out.