BARMAN-BACKUP(1)
π barman-backup β the Barman sub-commands glow-up π
okay bestie, sit down, hydrate, because this is the manual page for barman-backup(1), one of the Barman sub-commands, and honestly? it's giving main character energy. we're gonna walk through every single flag, every default, every warning. no skipping. no cap. π«Ά
β¨ NAME β¨
barman-backup β Barman Sub-Commands
π SYNOPSIS π
backup
[ --bwlimit KBPS ]
[ --cloud-staging-directory PATH ]
[ --cloud-staging-max-size SIZE ]
[ { -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 πΈ
so basically? this runs a PostgreSQL server backup. Barman will use the parameters specified in the Global and Server configuration files β like, it already knows the vibe from your config, you don't have to re-explain everything.
want backups from every server configured in the Barman node? just say all instead of a server name and it'll go do the rounds. iconic behaviour honestly.
and if you want to be β¨specificβ¨, you can also list multiple server names in sequence to execute backups for specific servers. one after another, no drama.
π¦ PARAMETERS π¦
SERVER_NAMEβ the name of the server in the barman node. that's who we're backing up, bestie.--bwlimitβ sets the maximum transfer rate in kilobytes per second. a value of0means no limit at all, go feral. this setting overrides thebandwidth_limitconfiguration option.--cloud-staging-directoryβ a staging directory for when you're sending backups to a cloud object storage usingbackup_method = postgres. it's the temporary hangout spot where chunks of the backup chill before they get sent to the cloud. defaults to/tmp/barman/cloud-staging.--cloud-staging-max-sizeβ the maximum size that--cloud-staging-directorycan grow to before Barman stops generating new backup chunks. this exists to stop the staging directory from ballooning if uploading chunks can't keep up with the speed of streaming them from Postgres. the default value is30Gi.
extremely low values are discouraged because they may lead to performance degradation. we recommend a minimum of at least 10Gi. the optimal value will depend on the transfer speed of the backup to Barman and from Barman to the cloud, as well as the size of the backup. basically: it depends, don't be chaotic about it.
the accepted format is n{k|Ki|M|Mi|G|Gi|T|Ti} and it is case-sensitive, where n is an integer greater than zero, with an optional SI or IEC suffix. k stands for kilo with k = 1000, while Ki stands for kilobytes Ki = 1024. the rest of the options have the same reasoning for greater units of measure. math is math π
-h/--helpβ show a help message and exit. provides information about command usage. your little "wait what do I type again" bestie.--incrementalβ execute a block-level incremental backup. you must provide aBACKUP_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-checkpointβ forces the initial checkpoint to be executed as soon as possible, overriding any value set for theimmediate_checkpointparameter in the configuration file. no waiting around, we're moving β¨-j/--jobsβ specify the number of parallel workers to use for copying files during the backup. this setting overrides theparallel_jobsparameter if it's specified in the configuration file. multitasking queen.--jobs-start-batch-periodβ specify the time period, in seconds, for starting a single batch of jobs. this value overrides theparallel_jobs_start_batch_periodparameter if it is set in the configuration file. the default is1second.--jobs-start-batch-sizeβ specify the maximum number of parallel workers to initiate in a single batch. this value overrides theparallel_jobs_start_batch_sizeparameter if it is defined in the configuration file. the default is10workers.--keepalive-intervalβ specify an interval, in seconds, for sending a heartbeat query to the server to keep the libpq connection active during a Rsync backup. the default is60seconds. a value of0disables the heartbeat entirely.--manifestβ forces the creation of a backup manifest file upon completing a backup. overrides theautogenerate_manifestparameter from the configuration file. applicable only to rsync backup strategy.--nameβ specify a friendly name for this backup which can be used in place of the backup ID in barman commands. nicknames!! we love a nickname π₯°--no-immediate-checkpointβ forces the backup to wait for the checkpoint to be executed, overriding any value set for theimmediate_checkpointparameter in the configuration file. the opposite energy of--immediate-checkpoint, as you may have clocked.--no-manifestβ disables the automatic creation of a backup manifest file upon completing a backup. this setting overrides theautogenerate_manifestparameter from the configuration file and applies only to rsync backup strategy.--no-retryβ there will be no retry in case of an error. it is the same as setting--retry-times 0. one shot, one opportunity.--retry-sleepβ specify the number of seconds to wait after a failed copy before retrying. this setting applies to both backup and recovery operations and overrides thebasebackup_retry_sleepparameter if it is defined in the configuration file.--retry-timesβ specify 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 thebasebackup_retry_timesparameter if it is set in the configuration file.--reuse-backupβ overrides the behavior of thereuse_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/-wβ wait for all necessary WAL files required by the base backup to be archived. patience, babe.--wait-timeoutβ specify the duration, in seconds, to wait for the required WAL files to be archived before timing out. the clock is ticking β°
π SHORTCUTS π
use shortcuts instead of SERVER_NAME. they're the cheat codes, iykyk.
allβ all available servers.
π Author π
EnterpriseDB
π Copyright π
Β© Copyright EnterpriseDB UK Limited 2011-2026
okay that's the whole page, you ate that fr fr π this was Barman version 3.20, dated Sep 29, 2026 β go forth and back up your databases, bestie. periodt. π¦β¨
π¦ where this page comes from
- epel 10: barman 3.20.1-1.el10_3 Β· GPL-3.0-only
- fedora 43: barman 3.20.1-1.fc43 Β· GPL-3.0-only
- fedora 43: barman 3.20.1-3.fc43 Β· GPL-3.0-only
- fedora 44: barman 3.20.1-1.fc44 Β· GPL-3.0-only
- fedora 44: barman 3.20.1-3.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms