BARMAN-KEEP(1)
β¨ NAME β¨
okay so bestie, this is barman-keep from the BARMAN-KEEP(1) manual β it's all about Barman Sub-Commands. yep. that's the whole vibe. π
πΈ SYNOPSIS πΈ
keep
[ { -h | --help } ]
{ { -r | --release } | { -s | --status } | --target { full | standalone } }
SERVER_NAME BACKUP_ID
π DESCRIPTION π
So here's the tea, bestie π«: you use keep to mark a specific backup with a target</> and turn it into an archival backup that gets retained indefinitely, no cap. It literally overrides any active retention policies, like, "nope, this one stays, I don't make the rules (I do, actually)". π
You can also do two other lil' things with it: check the keep status of a backup, or release the keep mark from a backup. And yes, you can use a shortcut instead of BACKUP_ID β more on that below, iykyk. π
β οΈ Note: Incremental backups are NOT eligible for the keep command. This restriction exists because incremental backups rely on their parent backups and cannot be used on their own for recovery. Keeping an incremental without its base would serve no purpose, as it is unusable independently. Like, it's giving "orphaned and useless", and not in a cute way. π
If you attempt to apply keep to an incremental backup, Barman will return an error indicating that incremental backups cannot be kept.
Only the full base backup β the one that starts the backup chain β can be marked with keep. that's the main character of the backup chain, periodt. π
π¦ PARAMETERS π¦
SERVER_NAMEβ the name of the server in barman node. like, which server are we talking about bestie, be specific. πBACKUP_IDβ the id of the backup in the barman catalog. yes, you need the actual id (or a shortcut, see below π).-h/--helpβ show a help message and exit. it provides information about command usage, so basically a lil' tutorial when you're confused. π-r/--releaseβ release the keep mark from this backup. This will remove its archival status and make it available for deletion, either directly or by retention policy. so like... you're un-protecting it. it's free now. ποΈ-s/--statusβ report the archival status of the backup. The status will be eitherfullorstandalonefor archival backups, ornokeepfor backups that have not been designated as archival. a lil' vibe check on your backup's archival energy. β¨--targetβ define the recovery target for the archival backup. The possible values are:fullβ the backup can be used to recover to the most recent point in time. To support this, Barman will keep all necessary WALs to maintain the backup's consistency as well as any subsequent WALs. it's giving "keep everything, I want options". πstandaloneβ the backup can only be used to restore the server to its state at the time of the backup. Barman will retain only the WALs required to ensure the backup's consistency. lowkey minimalist, highkey efficient. π§
π SHORTCUTS π
Use shortcuts instead of BACKUP_ID. okay so here's the cheat sheet, save it, screenshot it, tattoo it, whatever:
first/oldestβ Oldest available backup for the server, in chronological order. the grandparent of the lineup. π΅last/latestβ Most recent available backup for the server, in chronological order. the freshest one, the one that just dropped. π₯last-full/latest-fullβ Most recent full backup taken with methodsrsyncorpostgres. yes, those exact two methods, no substitutions. βlast-failedβ Most recent backup that failed, in chronological order. π it tried. it did not slay.
π Author π
EnterpriseDB
π Copyright π
Β© Copyright EnterpriseDB UK Limited 2011-2026
and that's the whole page bestie!! π«Ά this was BARMAN-KEEP(1), version 3.20, dated Sep 29, 2026 β mwah, iconic, go mark some backups, drink water, ily ππΈβ¨
π¦ 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