bup-cat-file(1)
π bup-cat-file β the manual page, but make it make sense π
okay so bestie, this is bup-cat-file(1), a page from the General Commands Manual, and it's one of those little low-level bup tools that does exactly one thing and does it beautifully. let's get into it β¨
πΈ NAME πΈ
bup-cat-file β extract archive content (low-level)
like, it's the bup equivalent of sticking a straw into an archive and sipping out one specific thing. low-level is the key word here, iykyk π
π SYNOPSIS π
bup cat-file [--meta|--bupm] <path>
short, sweet, iconic. one path, maybe one flag, that's the whole vibe π¦
β¨ DESCRIPTION β¨
bup cat-file extracts the content associated with path from the archive and dumps it straight to standard output. no frills, no files created, just content out the front door π
and if you don't ask for anything special? then it dumps the actual data contained by path β and heads up, path must be a regular file for that to work. not a dir, not a symlink, a regular file. periodt π
π OPTIONS π
--metaβ retrieve the metadata entry associated with path. okay so important caveat bestie, and the manpage is very clear about this: right now this does not return the raw bytes for the entry as recorded in the relevant.bupmin the archive. instead it gives you a version that's been decoded and then re-encoded. so it's like a photocopy of a photocopy, mostly identical but not the raw thing π. when that raw-bytes distinction actually matters to you, it should be possible β though awkward β to use--bupmon the parent directory and then go find the relevant entry in the output. doable, just a lil annoying, fr fr.--bupmβ retrieve the.bupmfile associated with path, which must be a directory. that's the requirement, no negotiating π
π EXAMPLES π
these are verbatim, keep them exactly like this:
# Retrieve the content of somefile.
$ bup cat-file /foo/latest/somefile > somefile-content
# Examine the metadata associated with something.
$ bup cat-file --meta /foo/latest/something | bup meta -tvvf -
# Examine the metadata for somedir, including the items it contains.
$ bup cat-file --bupm /foo/latest/somedir | bup meta -tvvf -
see how the last two pipe into bup meta -tvvf -? that's the move. cat-file grabs it, meta reads it, chef's kiss π
π₯ SEE ALSO π₯
go read those too, they're in the same friend group π«Ά
π BUP π
Part of the bup(1) suite. it's giving family reunion, it's giving cohesive toolset π
π AUTHORS π
Rob Browning <rlb@defaultvalue.org>
okay that's the whole page bestie, no notes π this was Bup 0.34, dated 2026-09-01, and it's bup-cat-file(1) signing off. slay, stay hydrated, and always redirect your stdout somewhere sensible πΈβ¨π¦
π¦ where this page comes from
- fedora 44: bup 0.34-1.fc44 Β· LGPL-2.0-only
- nixpkgs unstable: bup 0.34
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms