Debian Codegraph @

docs/_build/man/barman-cloud-backup-keep.1

raw
1 .\" Man page generated from reStructuredText
2 .\" by the Docutils 0.22.4 manpage writer.
3 .
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .TH "BARMAN-CLOUD-BACKUP-KEEP" "1" "Sep 29, 2026" "3.20" "Barman"
32 .SH NAME
33 barman-cloud-backup-keep \- Barman-cloud Commands
34 .sp
35 \fBSynopsis\fP
36 .INDENT 0.0
37 .INDENT 3.5
38 .sp
39 .EX
40 barman\-cloud\-backup\-keep
41 [ { \-V | \-\-version } ]
42 [ \-\-help ]
43 [ { { \-v | \-\-verbose } | { \-q | \-\-quiet } } ]
44 [ { \-t | \-\-test } ]
45 [ \-\-cloud\-provider { aws\-s3 | azure\-blob\-storage | google\-cloud\-storage } ]
46 [ \-\-endpoint\-url ENDPOINT_URL ]
47 [ { \-P | \-\-aws\-profile } AWS_PROFILE ]
48 [ \-\-profile AWS_PROFILE ]
49 [ \-\-read\-timeout READ_TIMEOUT ]
50 [ \-\-addressing\-style { auto | virtual | path } ]
51 [ \-\-sse\-customer\-key SSE_CUSTOMER_KEY ]
52 [ { \-\-azure\-credential | \-\-credential } { azure\-cli | managed\-identity | default } ]
53 [ { { \-r | \-\-release } | { \-s | \-\-status } | \-\-target { full | standalone } } ]
54 SOURCE_URL SERVER_NAME BACKUP_ID
55 .EE
56 .UNINDENT
57 .UNINDENT
58 .sp
59 \fBDescription\fP
60 .sp
61 Use this script to designate backups in cloud storage as archival backups, ensuring
62 their indefinite retention regardless of retention policies.
63 .sp
64 This script allows you to mark backups previously created with \fBbarman\-cloud\-backup\fP
65 as archival backups. Once flagged as archival, these backups are preserved indefinitely
66 and are not subject to standard retention policies.
67 .sp
68 \fBNote:\fP
69 .INDENT 0.0
70 .INDENT 3.5
71 For GCP, only authentication with \fBGOOGLE_APPLICATION_CREDENTIALS\fP env is supported.
72 To use an alternative GCP universe (e.g. S3NS/T\-Systems), set the
73 \fBGOOGLE_CLOUD_UNIVERSE_DOMAIN\fP environment variable to the desired universe domain.
74 .UNINDENT
75 .UNINDENT
76 .sp
77 \fBImportant:\fP
78 .INDENT 0.0
79 .INDENT 3.5
80 Starting with AWS boto3 1.36, the behavior of \fBData Integrity Protection checks\fP
81 has changed. Some methods used by Barman no longer require the \fBContent\-MD5\fP
82 header.
83 .sp
84 This means that \fBS3\-compatible storage providers that have not updated their
85 server\-side code may fail\fP when used with newer boto3 versions. For example, MinIO
86 addressed this change shortly after the boto3 1.36 announcement.
87 .sp
88 If you are using MinIO, you \fBmust upgrade\fP to the latest release (or at least
89 \fBRELEASE.2025\-02\-03T21\-03\-04Z\fP or newer) to ensure compatibility and avoid
90 failures when releasing a keep annotation.
91 .UNINDENT
92 .UNINDENT
93 .sp
94 \fBParameters\fP
95 .INDENT 0.0
96 .TP
97 .B \fBSERVER_NAME\fP
98 Name of the server that holds the backup to be kept.
99 .TP
100 .B \fBSOURCE_URL\fP
101 URL of the cloud source, such as a bucket in AWS S3. For example:
102 \fBs3://bucket/path/to/folder\fP\&.
103 .TP
104 .B \fBBACKUP_ID\fP
105 The ID of the backup to be kept. You can use a shortcut instead of the backup ID.
106 .TP
107 .B \fB\-V\fP / \fB\-\-version\fP
108 Show version and exit.
109 .TP
110 .B \fB\-\-help\fP
111 show this help message and exit.
112 .TP
113 .B \fB\-v\fP / \fB\-\-verbose\fP
114 Increase output verbosity (e.g., \fB\-vv\fP is more than \fB\-v\fP).
115 .TP
116 .B \fB\-q\fP / \fB\-\-quiet\fP
117 Decrease output verbosity (e.g., \fB\-qq\fP is less than \fB\-q\fP).
118 .TP
119 .B \fB\-t\fP / \fB\-\-test\fP
120 Test cloud connectivity and exit.
121 .TP
122 .B \fB\-\-cloud\-provider\fP
123 The cloud provider to use as a storage backend.
124 .sp
125 Allowed options are:
126 .INDENT 7.0
127 .IP \(bu 2
128 \fBaws\-s3\fP\&.
129 .IP \(bu 2
130 \fBazure\-blob\-storage\fP\&.
131 .IP \(bu 2
132 \fBgoogle\-cloud\-storage\fP\&.
133 .UNINDENT
134 .TP
135 .B \fB\-r\fP / \fB\-\-release\fP
136 If specified, the command will remove the keep annotation and the backup will be
137 eligible for deletion.
138 .TP
139 .B \fB\-s\fP / \fB\-\-status\fP
140 Print the keep status of the backup.
141 .TP
142 .B \fB\-\-target\fP
143 Specify the recovery target for this backup. Allowed options are:
144 .INDENT 7.0
145 .IP \(bu 2
146 \fBfull\fP
147 .IP \(bu 2
148 \fBstandalone\fP
149 .UNINDENT
150 .UNINDENT
151 .sp
152 \fBExtra options for the AWS cloud provider\fP
153 .INDENT 0.0
154 .TP
155 .B \fB\-\-endpoint\-url\fP
156 Override default S3 endpoint URL with the given one.
157 .TP
158 .B \fB\-P\fP / \fB\-\-aws\-profile\fP
159 Profile name (e.g. \fBINI\fP section in AWS credentials file).
160 .TP
161 .B \fB\-\-profile\fP (deprecated)
162 Profile name (e.g. \fBINI\fP section in AWS credentials file) \- replaced by
163 \fB\-\-aws\-profile\fP\&.
164 .TP
165 .B \fB\-\-read\-timeout\fP
166 The time in seconds until a timeout is raised when waiting to read from a connection
167 (defaults to \fB60\fP seconds).
168 .TP
169 .B \fB\-\-sse\-customer\-key\fP
170 The customer\-provided encryption key (SSE\-C) to use for decrypting data in S3. The
171 value must be a \fBfile://\fP URI pointing to a file containing a base64\-encoded 256\-bit
172 (32\-byte) key (e.g. \fBfile:///etc/barman/sse\-c.b64\fP).
173 .sp
174 \fBImportant:\fP
175 .INDENT 7.0
176 .INDENT 3.5
177 All backups and WAL files for a given server must be encrypted with the same SSE\-C
178 key. Mixing SSE\-C\-encrypted and unencrypted objects, or using different keys across
179 backups, will cause barman commands to fail when S3 rejects requests with a
180 mismatched or missing key.
181 .UNINDENT
182 .UNINDENT
183 .TP
184 .B \fB\-\-addressing\-style\fP
185 The S3 addressing style to use when connecting to S3\-compatible cloud storage. This
186 option is useful when using custom S3 endpoints (such as MinIO) that may require a
187 specific addressing style.
188 .sp
189 Allowed options:
190 .INDENT 7.0
191 .IP \(bu 2
192 \fBauto\fP (default): Uses the addressing style determined by the boto3 library.
193 .IP \(bu 2
194 \fBvirtual\fP: Uses virtual\-hosted\-style addressing (bucket\-name.s3.amazonaws.com).
195 .IP \(bu 2
196 \fBpath\fP: Uses path\-style addressing (s3.amazonaws.com/bucket\-name).
197 .UNINDENT
198 .UNINDENT
199 .sp
200 \fBExtra options for the Azure cloud provider\fP
201 .INDENT 0.0
202 .TP
203 .B \fB\-\-azure\-credential / \-\-credential\fP
204 Optionally specify the type of credential to use when authenticating with Azure. If
205 omitted then Azure Blob Storage credentials will be obtained from the environment and
206 the default Azure authentication flow will be used for authenticating with all other
207 Azure services. If no credentials can be found in the environment then the default
208 Azure authentication flow will also be used for Azure Blob Storage.
209 .sp
210 Allowed options are:
211 .INDENT 7.0
212 .IP \(bu 2
213 \fBazure\-cli\fP\&.
214 .IP \(bu 2
215 \fBmanaged\-identity\fP\&.
216 .IP \(bu 2
217 \fBdefault\fP\&.
218 .UNINDENT
219 .UNINDENT
220 .SH Author
221 EnterpriseDB
222 .SH Copyright
223 © Copyright EnterpriseDB UK Limited 2011-2026
224 .\" End of generated man page.