bup-rm(1)

✨ NAME ✨

bup-rm β€” bestie, this is the one that removes references to archive content πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

bup rm [-#|--verbose] <branch|save...>

πŸ’– DESCRIPTION πŸ’–

Okay so bup rm takes the branches (aka backup sets) and saves you point at it and removes them. That's it, that's the job. πŸŽ€

But real talk β€” by itself this command does not delete any actual data, and it does not recover any storage space. What it can do is make it very difficult or impossible to refer to the deleted items ever again, unless there are other references to them hanging around (like tags, bestie β€” tags are your safety net 🫢).

Then, later, a garbage collection via bup gc may permanently delete data that's no longer reachable from the remaining branches or tags, and reclaim the related storage space. πŸ—‘οΈβœ¨

Also yes, the same would apply to a git gc on the repository β€” BUT, and listen closely, the safety of running git gc on a bup repository has not been carefully evaluated, and it should be avoided. Do not do the thing. πŸ™ˆ

If you already know git(1), here's the vibe check: removing branches is similar to git branch -D BRANCH, and removing saves is like a git-rebase --interactive that removes commits. Same energy, different repo. 😌

WARNING: This is one of the few bup commands that modifies your archive in intentionally destructive ways. Like, on purpose. It's giving "main character who destroys the archive" πŸ’€

🌸 OPTIONS 🌸

  • -v, --verbose β€” turn the verbosity up ⬆️ (and you can use it more than once, so stack it if you're feeling extra).
  • -#, --compress=# β€” set the compression level to #, a value from 0-9, where 9 is the highest and 0 is no compression. The default is 6. This applies to the rewritten branches (commits). πŸ”₯

πŸ“ EXAMPLES πŸ“

# Delete the backup set (branch) foo and a save in bar.
$ bup rm /foo /bar/2014-10-21-214720

Slay. Two things gone, one command. πŸ‘‘


🌈 SEE ALSO 🌈

bup-gc(1), bup-save(1), bup-fsck(1), and bup-tag(1)


πŸ’œ BUP πŸ’œ

Part of the bup(1) suite.


πŸŽ€ AUTHORS πŸŽ€

Rob Browning rlb@defaultvalue.org


And that's the whole page, bestie β€” bup-rm(1), shipped as part of Bup 0.34 on 2026-09-01. Go be careful with your archive, ily, bye 🫢✨

πŸ“¦ where this page comes from