RDUP-TR(1)
π RDUP-TR(1) β the rdup manual, but make it cute π
okay bestie, gather round π«Ά this is rdup-tr, straight out of the rdup manual (section 1, the user commands, iykyk). It's the lil transformation station of the rdup universe and honestly? She's giving glow-up β¨
πΈ NAME πΈ
rdup-tr β transform rdup output π
β¨ SYNOPSIS β¨
rdup-tr [OPTION]...
that's it. that's the whole vibe. no positional args, no drama, just options π
π¦ DESCRIPTION π¦
So here's the tea β β rdup-tr takes rdup output and turns it into something else. And "something else" can be a tar, a cpio, a pax archive, or another rdup stream. Versatile queen π
π‘ The rdup archive must be handed to rdup-tr's standard input. No stdin, no service.
You can select multiple types of output (that's the -O flag, babe), but lowkey you need to be aware that you may lose some information in formats other than rdup's own. There's a whole table for it, keep reading π
You may also feed rdup-tr nothing but a list of pathnames β that's what the -L flag is for π
Here's what happens to your output depending on what you feed in. The legend first:
0β OK, we ate, no notes πDβ delete information is lost πHβ hardlink information is lost π
Now the actual combos:
- input
rdupβ outputtar,cpio,pax:D(delete info, gone girl π) - input
rdupβ outputrdup:0(perfect, iconic, no loss π) - input
filelistβ outputtar,cpio,pax:DH(both delete and hardlink info lost, we're sobbing π₯²) - input
filelistβ outputrdup:H(just the hardlink info lost)
π OPTIONS π
-Lβ Select list input format. Normallyrdup-traccepts rdup output, but with this option you can hand it a list of path names instead. > β οΈ Heads up bestie: with list input,rdup-trwillstat()each file, so this can not be used in remote back ups. Periodt.-Oβ Output format. Can be'tar','cpio','pax'or'rdup'. It defaults to'rdup'. Pick your fighter π«-X_key_ β Read the encryption key from the file _key_ and encrypt all paths with Blowfish and this key and iv. After the encryption the binary data is converted into ASCII using an URL safe (Section 4 of RFC 3548) version of base64 encode. π
π¨ The encryption key must be on the first line, and the key size must be16and8bytes for the iv β so24in total. Don't play with this, fr fr.
-Y_key_ β Read the decryption key from the file _key_ and decrypt all paths with Blowfish and this key. Before the encryption the paths are converted to binary by using an URL safe version of base64 decode. π-cβ Force output to the tty. Normallyrdup-trwants to see its output redirected. She's shy π-vβ Be more verbose. Prints the processed file names to standard error. Chatty era π£οΈ-Vβ Printrdup-tr's version.-hβ A short help. Your lil rescue button π
π EXAMPLES π
The following is possible π
rdup -P gzip -P "mcrypt -f KEY -c" /dev/null /home | \
rdup-tr -O tar -X<(echo secret) | gzip > \
my-home-zipped-crypted-pathcrypted-tar.gz
That is: all files under /home are gzipped and encrypted on a per file basis (first line). Further more, all pathnames are Blowfish encrypted (second line) with the key 'secret'. This is put in a tar file, which is then compressed, resulting in the final output (final line). A whole pipeline, a whole journey π
Creating a compressed and encrypted tar archive out of a full rdup dump might be done as follows:
rdup -P gzip -P "mcrypt -f KEY -c" /dev/null /home | \
rdup-tr -O tar > my-home-zipped-and-crypted.tar
Or even pack and unpack it on the fly π«
rdup -P gzip -P "mcrypt -fKEY -c" /dev/null /home | rdup-tr -Otar | \
ssh user@remotehost tar xvCf /tmp -
Or encryption with openssl π
rdup -P "openssl enc -e -des-cbc -k secret" /dev/null /home
Or, compressing with gzip, encrypting with openssl and then compressing the entire archive yet again (double compression, main character energy π)
rdup -P gzip -P "openssl enc -e -des-cbc -k secret" /dev/null /home | \
gzip > my_compressed_encrypted_rdup_archive.gz
π EXIT CODE π
rdup-tr returns a zero exit code on success, otherwise 1 is returned. No in-between, no situationship.
π«Ά AUTHOR π«Ά
Written by Miek Gieben. A legend, honestly.
π REPORTING BUGS π
Report bugs to <miek@miek.nl>. Tell him everything, he can handle it π
β SEE ALSO β
http:/www.miek.nl/projects/rdup/ is the main site of rdup. Also see rdup(1), rdup-up(1) and rdup-backups(7). Go read the whole family, they're all icons π§
π COPYRIGHT π
Copyright (C) 2005-2010 Miek Gieben. This is free software. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Like, none. Zero. Nada. π«
Licensed under the GPL version 3. See the file LICENSE in the source distribution of rdup.
and that's the whole page, bestie!! π this was rdup-tr from the rdup manual, version 1.1.14, dated 27 Nov 2008 β yeah she's vintage, and vintage is iconic π
β¨ no cap. now go pipe something into her stdin and slay π¦πΈ
π¦ where this page comes from
- nixos 26.05: rdup 1.1.15
- ubuntu jammy: rdup 1.1.15-1ubuntu2
- ubuntu noble: rdup 1.1.15-1ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms