bup-join(1)

πŸ’– bup-join(1) β€” bestie edition πŸ’–

okay so this is a page from the General Commands Manual, and it's all about bup-join, one of the lil' bup besties. let's get into it 🫢


✨ NAME ✨

bup-join β€” concatenate files from a bup repository

like. it smooshes files back together out of ur bup repo. that's the whole vibe. 🌸


πŸŽ€ SYNOPSIS πŸŽ€

bup join [-r host:path] [refs or hashes...]

πŸ¦‹ DESCRIPTION πŸ¦‹

so bup join is roughly the opposite operation to bup-split(1). no cap. split takes stuff apart, join puts it back together. main character energy, honestly.

you can use it to retrieve the contents of a file from a local or remote bup repository πŸ’…

the list of refs or hashes u hand it can be in any format accepted by git(1) β€” and I mean any: branch names, commit ids, tree ids, or blob ids. all of them. iconic.

and if you don't give it any refs or hashes on the command line? it doesn't throw a fit, it just reads them from stdin instead. considerate queen. πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • -r, --remote=[user@]host:[path], --remote=URL β€” pulls the data from the remote repository you specify, and by default it goes over SSH. if u wanna know more, go peek at bup(1) REMOTE OPTIONS. periodt. ✨

🌈 EXAMPLES 🌈

okay these are the fun part, look:

# split and then rejoin a file using its tree id
TREE=$(tar -cvf - /etc | bup split -t)
bup join $TREE | tar -tf -

# make two backups, then get the second-most-recent.
# mybackup~1 is git(1) notation for the second most
# recent commit on the branch named mybackup.
tar -cvf - /etc | bup split -n mybackup
tar -cvf - /etc | bup split -n mybackup
bup join mybackup~1 | tar -tf -

first one: split a thing, grab its tree id, then rejoin it using that tree id. clean. 🧚

second one: make two backups, then grab the second-most-recent one β€” and mybackup~1 is the git(1) notation for the second most recent commit on the branch named mybackup. iykyk πŸ“


πŸ”₯ SEE ALSO πŸ”₯

bup-split(1), bup-save(1), bup-cat-file, ssh_config(5)


πŸ‘‘ BUP πŸ‘‘

part of the bup(1) suite. obviously. she's a family member πŸ’œ


πŸ’€ AUTHORS πŸ’€

Avery Pennarun apenwarr@gmail.com


aaaand that's the whole page bestie!! this was Bup 0.34, dated 2026-09-01, and the manual page itself is bup-join(1). slay, go back up that repo πŸ«Άβœ¨πŸ’–

πŸ“¦ where this page comes from