[nycbug-talk] making rar play nice with pipes?

Ray Lai nycbug at cyth.net
Sun May 18 22:00:09 EDT 2008


On Sun, May 18, 2008 at 9:25 PM, Tim A. <techneck at goldenpath.org> wrote:
> I pipe tar | gpg | ssh in some remote backup scripts like this:
> tar -cvf - $target \
> | gpg -ear "$key_id" -o - \
> | ssh -i $key $remote_account "cat > $remote_path/$archive"
>
> Using gzip -9 gives practically no additional compression.
> The archives are nearly 2x the size rar gives me, but I can't figure out
> how to make rar play nice with pipes.
> rar a -- - $target
> creates the file -.rar (!)
>
> To use rar, I have to rar it locally and then gpg | ssh it.
>
> I like rar, but this sucks. Anyone know any hacks to get this to play nice?

I haven't tried this, but perhaps you can use /dev/stdout instead of -?

-Ray-



More information about the talk mailing list