.\" Man page generated from reStructuredText .\" by the Docutils 0.22.4 manpage writer. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "BARMAN-CLOUD-BACKUP-KEEP" "1" "Sep 29, 2026" "3.20" "Barman" .SH NAME barman-cloud-backup-keep \- Barman-cloud Commands .sp \fBSynopsis\fP .INDENT 0.0 .INDENT 3.5 .sp .EX barman\-cloud\-backup\-keep [ { \-V | \-\-version } ] [ \-\-help ] [ { { \-v | \-\-verbose } | { \-q | \-\-quiet } } ] [ { \-t | \-\-test } ] [ \-\-cloud\-provider { aws\-s3 | azure\-blob\-storage | google\-cloud\-storage } ] [ \-\-endpoint\-url ENDPOINT_URL ] [ { \-P | \-\-aws\-profile } AWS_PROFILE ] [ \-\-profile AWS_PROFILE ] [ \-\-read\-timeout READ_TIMEOUT ] [ \-\-addressing\-style { auto | virtual | path } ] [ \-\-sse\-customer\-key SSE_CUSTOMER_KEY ] [ { \-\-azure\-credential | \-\-credential } { azure\-cli | managed\-identity | default } ] [ { { \-r | \-\-release } | { \-s | \-\-status } | \-\-target { full | standalone } } ] SOURCE_URL SERVER_NAME BACKUP_ID .EE .UNINDENT .UNINDENT .sp \fBDescription\fP .sp Use this script to designate backups in cloud storage as archival backups, ensuring their indefinite retention regardless of retention policies. .sp This script allows you to mark backups previously created with \fBbarman\-cloud\-backup\fP as archival backups. Once flagged as archival, these backups are preserved indefinitely and are not subject to standard retention policies. .sp \fBNote:\fP .INDENT 0.0 .INDENT 3.5 For GCP, only authentication with \fBGOOGLE_APPLICATION_CREDENTIALS\fP env is supported. To use an alternative GCP universe (e.g. S3NS/T\-Systems), set the \fBGOOGLE_CLOUD_UNIVERSE_DOMAIN\fP environment variable to the desired universe domain. .UNINDENT .UNINDENT .sp \fBImportant:\fP .INDENT 0.0 .INDENT 3.5 Starting with AWS boto3 1.36, the behavior of \fBData Integrity Protection checks\fP has changed. Some methods used by Barman no longer require the \fBContent\-MD5\fP header. .sp This means that \fBS3\-compatible storage providers that have not updated their server\-side code may fail\fP when used with newer boto3 versions. For example, MinIO addressed this change shortly after the boto3 1.36 announcement. .sp If you are using MinIO, you \fBmust upgrade\fP to the latest release (or at least \fBRELEASE.2025\-02\-03T21\-03\-04Z\fP or newer) to ensure compatibility and avoid failures when releasing a keep annotation. .UNINDENT .UNINDENT .sp \fBParameters\fP .INDENT 0.0 .TP .B \fBSERVER_NAME\fP Name of the server that holds the backup to be kept. .TP .B \fBSOURCE_URL\fP URL of the cloud source, such as a bucket in AWS S3. For example: \fBs3://bucket/path/to/folder\fP\&. .TP .B \fBBACKUP_ID\fP The ID of the backup to be kept. You can use a shortcut instead of the backup ID. .TP .B \fB\-V\fP / \fB\-\-version\fP Show version and exit. .TP .B \fB\-\-help\fP show this help message and exit. .TP .B \fB\-v\fP / \fB\-\-verbose\fP Increase output verbosity (e.g., \fB\-vv\fP is more than \fB\-v\fP). .TP .B \fB\-q\fP / \fB\-\-quiet\fP Decrease output verbosity (e.g., \fB\-qq\fP is less than \fB\-q\fP). .TP .B \fB\-t\fP / \fB\-\-test\fP Test cloud connectivity and exit. .TP .B \fB\-\-cloud\-provider\fP The cloud provider to use as a storage backend. .sp Allowed options are: .INDENT 7.0 .IP \(bu 2 \fBaws\-s3\fP\&. .IP \(bu 2 \fBazure\-blob\-storage\fP\&. .IP \(bu 2 \fBgoogle\-cloud\-storage\fP\&. .UNINDENT .TP .B \fB\-r\fP / \fB\-\-release\fP If specified, the command will remove the keep annotation and the backup will be eligible for deletion. .TP .B \fB\-s\fP / \fB\-\-status\fP Print the keep status of the backup. .TP .B \fB\-\-target\fP Specify the recovery target for this backup. Allowed options are: .INDENT 7.0 .IP \(bu 2 \fBfull\fP .IP \(bu 2 \fBstandalone\fP .UNINDENT .UNINDENT .sp \fBExtra options for the AWS cloud provider\fP .INDENT 0.0 .TP .B \fB\-\-endpoint\-url\fP Override default S3 endpoint URL with the given one. .TP .B \fB\-P\fP / \fB\-\-aws\-profile\fP Profile name (e.g. \fBINI\fP section in AWS credentials file). .TP .B \fB\-\-profile\fP (deprecated) Profile name (e.g. \fBINI\fP section in AWS credentials file) \- replaced by \fB\-\-aws\-profile\fP\&. .TP .B \fB\-\-read\-timeout\fP The time in seconds until a timeout is raised when waiting to read from a connection (defaults to \fB60\fP seconds). .TP .B \fB\-\-sse\-customer\-key\fP The customer\-provided encryption key (SSE\-C) to use for decrypting data in S3. The value must be a \fBfile://\fP URI pointing to a file containing a base64\-encoded 256\-bit (32\-byte) key (e.g. \fBfile:///etc/barman/sse\-c.b64\fP). .sp \fBImportant:\fP .INDENT 7.0 .INDENT 3.5 All backups and WAL files for a given server must be encrypted with the same SSE\-C key. Mixing SSE\-C\-encrypted and unencrypted objects, or using different keys across backups, will cause barman commands to fail when S3 rejects requests with a mismatched or missing key. .UNINDENT .UNINDENT .TP .B \fB\-\-addressing\-style\fP The S3 addressing style to use when connecting to S3\-compatible cloud storage. This option is useful when using custom S3 endpoints (such as MinIO) that may require a specific addressing style. .sp Allowed options: .INDENT 7.0 .IP \(bu 2 \fBauto\fP (default): Uses the addressing style determined by the boto3 library. .IP \(bu 2 \fBvirtual\fP: Uses virtual\-hosted\-style addressing (bucket\-name.s3.amazonaws.com). .IP \(bu 2 \fBpath\fP: Uses path\-style addressing (s3.amazonaws.com/bucket\-name). .UNINDENT .UNINDENT .sp \fBExtra options for the Azure cloud provider\fP .INDENT 0.0 .TP .B \fB\-\-azure\-credential / \-\-credential\fP Optionally specify the type of credential to use when authenticating with Azure. If omitted then Azure Blob Storage credentials will be obtained from the environment and the default Azure authentication flow will be used for authenticating with all other Azure services. If no credentials can be found in the environment then the default Azure authentication flow will also be used for Azure Blob Storage. .sp Allowed options are: .INDENT 7.0 .IP \(bu 2 \fBazure\-cli\fP\&. .IP \(bu 2 \fBmanaged\-identity\fP\&. .IP \(bu 2 \fBdefault\fP\&. .UNINDENT .UNINDENT .SH Author EnterpriseDB .SH Copyright © Copyright EnterpriseDB UK Limited 2011-2026 .\" End of generated man page.