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 either full or standalone for archival backups, or nokeep for 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 methods rsync or postgres. 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 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