Skip to content

berkley4/rzip

Repository files navigation

This is Andrew Tridgell's rzip compressor
(original source: http://rzip.samba.org/)
This version is built with Nicolas Rachinsky's patch to enable data to be read
from and/or written to stdin/stdout.

WARNING: any rzip file produced with this version is not usable with plain rzip.


To compile you need to install libbz2-dev (or the equivalent for your system).
Build the program with something similar to this :-

export CC=gcc-4.7 CPPFLAGS="-D_FORTIFY_SOURCE=2" \
CFLAGS="-fstack-protector --param=ssp-buffer-size=4 -fpie -O2 -march=i686" \
LDFLAGS="-Wl,-O1 -Wl,--sort-common -pie -Wl,-z,relro -Wl,-z,now"


Or for an amd64 system (fPIE instead of fpie) :-

export CC=gcc-4.7 CPPFLAGS="-D_FORTIFY_SOURCE=2" \
CFLAGS="-fstack-protector --param=ssp-buffer-size=4 -fPIE -O2 -march=athlon64" \
LDFLAGS="-Wl,-O1 -Wl,--sort-common -pie -Wl,-z,relro -Wl,-z,now"


./configure
make


Example usage :-

Compress directory 'files' and encrypt the result, eg for uploading
an encrypted file via the internet :-

export R1=/tmp/temp1 R2=/tmp/temp2 ; \
tar -C "$HOME" -c files | rzip -q "$R1" -Q "$R2" | \
openssl aes-256-cbc -out "$HOME"/outgoing/files.tar.rz


Decrypt files.tar.rz and decompress it :-

export R3=/tmp/temp3 R4=/tmp/temp4 ; \
openssl aes-256-cbc -d -in "$HOME"/incoming/files.tar.rz | \
rzip -d -q "$R3" -Q "$R4" | \
tar -C "$HOME"/incoming -x

About

rzip that can input/output via pipes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published