Debian Codegraph @

docs/_build/man/barman-keep.1

raw
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-KEEP" "1" "Sep 29, 2026" "3.20" "Barman"
33 .SH NAME
34 barman-keep \- Barman Sub-Commands
35 .SH SYNOPSIS
36 .INDENT 0.0
37 .INDENT 3.5
38 .sp
39 .EX
40 keep
41 [ { \-h | \-\-help } ]
42 { { \-r | \-\-release } | { \-s | \-\-status } | \-\-target { full | standalone } }
43 SERVER_NAME BACKUP_ID
44 .EE
45 .UNINDENT
46 .UNINDENT
47 .SH DESCRIPTION
48 .sp
49 Mark the specified backup with a \fBtarget\fP as an archival backup to be retained
50 indefinitely, overriding any active retention policies. You can also check the keep
51 \fBstatus\fP of a backup and \fBrelease\fP the keep mark from a backup. You can use a
52 shortcut instead of \fBBACKUP_ID\fP\&.
53 .sp
54 \fBNote:\fP
55 .INDENT 0.0
56 .INDENT 3.5
57 Incremental backups are not eligible for the \fBkeep\fP command. This restriction exists
58 because incremental backups rely on their parent backups and cannot be used on their
59 own for recovery. Keeping an incremental without its base would serve no purpose, as
60 it is unusable independently.
61 .sp
62 If you attempt to apply keep to an incremental backup, Barman will return an error
63 indicating that incremental backups cannot be kept.
64 .sp
65 \fBOnly the full base backup —the one that starts the backup chain— can be marked with
66 keep.\fP
67 .UNINDENT
68 .UNINDENT
69 .SH PARAMETERS
70 .INDENT 0.0
71 .TP
72 .B \fBSERVER_NAME\fP
73 Name of the server in barman node
74 .TP
75 .B \fBBACKUP_ID\fP
76 Id of the backup in barman catalog.
77 .TP
78 .B \fB\-h\fP / \fB\-\-help\fP
79 Show a help message and exit. Provides information about command usage.
80 .TP
81 .B \fB\-r\fP / \fB\-\-release\fP
82 Release the keep mark from this backup. This will remove its archival status and
83 make it available for deletion, either directly or by retention policy.
84 .TP
85 .B \fB\-s\fP / \fB\-\-status\fP
86 Report the archival status of the backup. The status will be either \fBfull\fP or
87 \fBstandalone\fP for archival backups, or \fBnokeep\fP for backups that have not been
88 designated as archival.
89 .TP
90 .B \fB\-\-target\fP
91 Define the recovery target for the archival backup. The possible values are:
92 .INDENT 7.0
93 .IP \(bu 2
94 \fBfull\fP: The backup can be used to recover to the most recent point in time. To
95 support this, Barman will keep all necessary WALs to maintain the backup\(aqs
96 consistency as well as any subsequent WALs.
97 .IP \(bu 2
98 \fBstandalone\fP: The backup can only be used to restore the server to its state at the
99 time of the backup. Barman will retain only the WALs required to ensure the
100 backup\(aqs consistency.
101 .UNINDENT
102 .UNINDENT
103 .SH SHORTCUTS
104 .sp
105 Use shortcuts instead of \fBBACKUP_ID\fP\&.
106 .TS
107 box center;
108 l|l.
109 T{
110 \fBShortcut\fP
111 T} T{
112 \fBDescription\fP
113 T}
114 _
115 T{
116 \fBfirst/oldest\fP
117 T} T{
118 Oldest available backup for the server, in chronological order.
119 T}
120 _
121 T{
122 \fBlast/latest\fP
123 T} T{
124 Most recent available backup for the server, in chronological order.
125 T}
126 _
127 T{
128 \fBlast\-full/latest\-full\fP
129 T} T{
130 Most recent full backup taken with methods \fBrsync\fP or \fBpostgres\fP\&.
131 T}
132 _
133 T{
134 \fBlast\-failed\fP
135 T} T{
136 Most recent backup that failed, in chronological order.
137 T}
138 .TE
139 .SH Author
140 EnterpriseDB
141 .SH Copyright
142 © Copyright EnterpriseDB UK Limited 2011-2026
143 .\" End of generated man page.