| 1 |
'\" t |
| 2 |
.\" Man page generated from reStructuredText |
| 3 |
.\" by the Docutils 0.22.4 manpage writer. |
| 4 |
. |
| 5 |
. |
| 6 |
.nr rst2man-indent-level 0 |
| 7 |
. |
| 8 |
.de1 rstReportMargin |
| 9 |
\\$1 \\n[an-margin] |
| 10 |
level \\n[rst2man-indent-level] |
| 11 |
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 12 |
- |
| 13 |
\\n[rst2man-indent0] |
| 14 |
\\n[rst2man-indent1] |
| 15 |
\\n[rst2man-indent2] |
| 16 |
.. |
| 17 |
.de1 INDENT |
| 18 |
.\" .rstReportMargin pre: |
| 19 |
. RS \\$1 |
| 20 |
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] |
| 21 |
. nr rst2man-indent-level +1 |
| 22 |
.\" .rstReportMargin post: |
| 23 |
.. |
| 24 |
.de UNINDENT |
| 25 |
. RE |
| 26 |
.\" indent \\n[an-margin] |
| 27 |
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 28 |
.nr rst2man-indent-level -1 |
| 29 |
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 30 |
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u |
| 31 |
.. |
| 32 |
.TH "BARMAN-BACKUP" "1" "Sep 29, 2026" "3.20" "Barman" |
| 33 |
.SH NAME |
| 34 |
barman-backup \- Barman Sub-Commands |
| 35 |
.SH SYNOPSIS |
| 36 |
.INDENT 0.0 |
| 37 |
.INDENT 3.5 |
| 38 |
.sp |
| 39 |
.EX |
| 40 |
backup |
| 41 |
[ \-\-bwlimit KBPS ] |
| 42 |
[ \-\-cloud\-staging\-directory PATH ] |
| 43 |
[ \-\-cloud\-staging\-max\-size SIZE ] |
| 44 |
[ { \-h | \-\-help } ] |
| 45 |
[ \-\-incremental BACKUP_ID ] |
| 46 |
[ \-\-immediate\-checkpoint ] |
| 47 |
[ { \-j | \-\-jobs } PARALLEL_WORKERS ] |
| 48 |
[ \-\-jobs\-start\-batch\-period PERIOD ] |
| 49 |
[ \-\-jobs\-start\-batch\-size SIZE ] |
| 50 |
[ \-\-keepalive\-interval SECONDS ] |
| 51 |
[ \-\-manifest ] |
| 52 |
[ \-\-name NAME ] |
| 53 |
[ \-\-no\-immediate\-checkpoint ] |
| 54 |
[ \-\-no\-manifest ] |
| 55 |
[ \-\-no\-retry ] |
| 56 |
[ \-\-retry\-sleep SECONDS ] |
| 57 |
[ \-\-retry\-times NUMBER ] |
| 58 |
[ \-\-reuse\-backup { off | copy | link } ] |
| 59 |
[ { \-\-wait | \-w } ] |
| 60 |
[ \-\-wait\-timeout SECONDS ] |
| 61 |
SERVER_NAME [ SERVER_NAME ... ] |
| 62 |
.EE |
| 63 |
.UNINDENT |
| 64 |
.UNINDENT |
| 65 |
.SH DESCRIPTION |
| 66 |
.sp |
| 67 |
Execute a PostreSQL server backup. Barman will use the parameters specified in the Global |
| 68 |
and Server configuration files. Specify \fBall\fP shortcut instead of the server name to |
| 69 |
execute backups from all servers configured in the Barman node. You can also specify |
| 70 |
multiple server names in sequence to execute backups for specific servers. |
| 71 |
.SH PARAMETERS |
| 72 |
.INDENT 0.0 |
| 73 |
.TP |
| 74 |
.B \fBSERVER_NAME\fP |
| 75 |
Name of the server in barman node. |
| 76 |
.TP |
| 77 |
.B \fB\-\-bwlimit\fP |
| 78 |
Specify the maximum transfer rate in kilobytes per second. A value of 0 indicates no |
| 79 |
limit. This setting overrides the \fBbandwidth_limit\fP configuration option. |
| 80 |
.TP |
| 81 |
.B \fB\-\-cloud\-staging\-directory\fP |
| 82 |
A staging directory for when sending backups to a cloud object storage using |
| 83 |
\fBbackup_method = postgres\fP\&. It is used as a temporary location for storing chunks |
| 84 |
of the backup before they are sent to the cloud. Defaults to |
| 85 |
\fB/tmp/barman/cloud\-staging\fP\&. |
| 86 |
.TP |
| 87 |
.B \fB\-\-cloud\-staging\-max\-size\fP |
| 88 |
The maximum size that \fB\-\-cloud\-staging\-directory\fP can grow to before Barman stops |
| 89 |
generating new backup chunks. This is used to prevent the staging directory from |
| 90 |
growing in case the speed of uploading chunks does not keep up with the speed of |
| 91 |
streaming them from Postgres. The default value is \fB30Gi\fP\&. |
| 92 |
.sp |
| 93 |
Extremely low values are discouraged as they may lead to performance degradation. |
| 94 |
We recommend a minimum of at least \fB10Gi\fP\&. The optimal value will depend on the |
| 95 |
transfer speed of the backup to Barman and from Barman to the cloud, as well as the |
| 96 |
size of the backup. |
| 97 |
.sp |
| 98 |
The accepted format is \fBn{k|Ki|M|Mi|G|Gi|T|Ti}\fP and case\-sensitive, where \fBn\fP |
| 99 |
is an integer greater than zero, with an optional SI or IEC suffix. k stands for |
| 100 |
kilo with k = 1000, while Ki stands for kilobytes Ki = 1024. The rest of the options |
| 101 |
have the same reasoning for greater units of measure. |
| 102 |
.TP |
| 103 |
.B \fB\-h\fP / \fB\-\-help\fP |
| 104 |
Show a help message and exit. Provides information about command usage. |
| 105 |
.TP |
| 106 |
.B \fB\-\-incremental\fP |
| 107 |
Execute a block\-level incremental backup. You must provide a \fBBACKUP_ID\fP or a |
| 108 |
shortcut to a previous backup, which will serve as the parent backup for the |
| 109 |
incremental backup. |
| 110 |
.sp |
| 111 |
\fBNote:\fP |
| 112 |
.INDENT 7.0 |
| 113 |
.INDENT 3.5 |
| 114 |
The backup to be and the parent backup must have \fBbackup_method=postgres\fP\&. |
| 115 |
.UNINDENT |
| 116 |
.UNINDENT |
| 117 |
.TP |
| 118 |
.B \fB\-\-immediate\-checkpoint\fP |
| 119 |
Forces the initial checkpoint to be executed as soon as possible, overriding any |
| 120 |
value set for the \fBimmediate_checkpoint\fP parameter in the configuration file. |
| 121 |
.TP |
| 122 |
.B \fB\-j\fP / \fB\-\-jobs\fP |
| 123 |
Specify the number of parallel workers to use for copying files during the backup. |
| 124 |
This setting overrides the \fBparallel_jobs\fP parameter if it\(aqs specified in the |
| 125 |
configuration file. |
| 126 |
.TP |
| 127 |
.B \fB\-\-jobs\-start\-batch\-period\fP |
| 128 |
Specify the time period, in seconds, for starting a single batch of jobs. This value |
| 129 |
overrides the \fBparallel_jobs_start_batch_period\fP parameter if it is set in the |
| 130 |
configuration file. The default is \fB1\fP second. |
| 131 |
.TP |
| 132 |
.B \fB\-\-jobs\-start\-batch\-size\fP |
| 133 |
Specify the maximum number of parallel workers to initiate in a single batch. This |
| 134 |
value overrides the \fBparallel_jobs_start_batch_size\fP parameter if it is defined in |
| 135 |
the configuration file. The default is \fB10\fP workers. |
| 136 |
.TP |
| 137 |
.B \fB\-\-keepalive\-interval\fP |
| 138 |
Specify an interval, in seconds, for sending a heartbeat query to the server to keep |
| 139 |
the libpq connection active during a Rsync backup. The default is \fB60\fP seconds. A |
| 140 |
value of \fB0\fP disables the heartbeat. |
| 141 |
.TP |
| 142 |
.B \fB\-\-manifest\fP |
| 143 |
Forces the creation of a backup manifest file upon completing a backup. Overrides the |
| 144 |
\fBautogenerate_manifest\fP parameter from the configuration file. Applicable only to |
| 145 |
rsync backup strategy. |
| 146 |
.TP |
| 147 |
.B \fB\-\-name\fP |
| 148 |
Specify a friendly name for this backup which can be used in place of the backup ID |
| 149 |
in barman commands. |
| 150 |
.TP |
| 151 |
.B \fB\-\-no\-immediate\-checkpoint\fP |
| 152 |
Forces the backup to wait for the checkpoint to be executed overriding any value set |
| 153 |
for the \fBimmediate_checkpoint\fP parameter in the configuration file. |
| 154 |
.TP |
| 155 |
.B \fB\-\-no\-manifest\fP |
| 156 |
Disables the automatic creation of a backup manifest file upon completing a backup. |
| 157 |
This setting overrides the \fBautogenerate_manifest\fP parameter from the configuration |
| 158 |
file and applies only to rsync backup strategy. |
| 159 |
.TP |
| 160 |
.B \fB\-\-no\-retry\fP |
| 161 |
There will be no retry in case of an error. It is the same as setting |
| 162 |
\fB\-\-retry\-times 0\fP\&. |
| 163 |
.TP |
| 164 |
.B \fB\-\-retry\-sleep\fP |
| 165 |
Specify the number of seconds to wait after a failed copy before retrying. This |
| 166 |
setting applies to both backup and recovery operations and overrides the |
| 167 |
\fBbasebackup_retry_sleep\fP parameter if it is defined in the configuration file. |
| 168 |
.TP |
| 169 |
.B \fB\-\-retry\-times\fP |
| 170 |
Specify the number of times to retry the base backup copy in case of an error. This |
| 171 |
applies to both backup and recovery operations and overrides the |
| 172 |
\fBbasebackup_retry_times\fP parameter if it is set in the configuration file. |
| 173 |
.TP |
| 174 |
.B \fB\-\-reuse\-backup\fP |
| 175 |
Overrides the behavior of the \fBreuse_backup\fP option configured in the configuration |
| 176 |
file. The possible values are: |
| 177 |
.INDENT 7.0 |
| 178 |
.IP \(bu 2 |
| 179 |
\fBoff\fP: Do not reuse the last available backup. |
| 180 |
.IP \(bu 2 |
| 181 |
\fBcopy\fP: Reuse the last available backup for a server and create copies of |
| 182 |
unchanged files (reduces backup time). |
| 183 |
.IP \(bu 2 |
| 184 |
\fBlink\fP (default): Reuse the last available backup for a server and create |
| 185 |
hard links to unchanged files (saves both backup time and space). |
| 186 |
.UNINDENT |
| 187 |
.sp |
| 188 |
\fBNote:\fP |
| 189 |
.INDENT 7.0 |
| 190 |
.INDENT 3.5 |
| 191 |
This will only have any effect if the last available backup was |
| 192 |
executed with \fBbackup_method=rsync\fP\&. |
| 193 |
.UNINDENT |
| 194 |
.UNINDENT |
| 195 |
.TP |
| 196 |
.B \fB\-\-wait\fP / \fB\-w\fP |
| 197 |
Wait for all necessary WAL files required by the base backup to be archived. |
| 198 |
.TP |
| 199 |
.B \fB\-\-wait\-timeout\fP |
| 200 |
Specify the duration, in seconds, to wait for the required WAL files to be archived |
| 201 |
before timing out. |
| 202 |
.UNINDENT |
| 203 |
.SH SHORTCUTS |
| 204 |
.sp |
| 205 |
Use shortcuts instead of \fBSERVER_NAME\fP\&. |
| 206 |
.TS |
| 207 |
box center; |
| 208 |
l|l. |
| 209 |
T{ |
| 210 |
\fBShortcut\fP |
| 211 |
T} T{ |
| 212 |
\fBDescription\fP |
| 213 |
T} |
| 214 |
_ |
| 215 |
T{ |
| 216 |
\fBall\fP |
| 217 |
T} T{ |
| 218 |
All available servers |
| 219 |
T} |
| 220 |
.TE |
| 221 |
.SH Author |
| 222 |
EnterpriseDB |
| 223 |
.SH Copyright |
| 224 |
© Copyright EnterpriseDB UK Limited 2011-2026 |
| 225 |
.\" End of generated man page. |