Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 835

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>Bzip2 mini-HOWTO: Using bzip2 with wu-ftpd</TITLE>
 <LINK HREF="Bzip2-8.html" REL=next>
 <LINK HREF="Bzip2-6.html" REL=previous>
 <LINK HREF="Bzip2.html#toc7" REL=contents>
</HEAD>
<BODY>
<A HREF="Bzip2-8.html">Next</A>
<A HREF="Bzip2-6.html">Previous</A>
<A HREF="Bzip2.html#toc7">Contents</A>
<HR>
<H2><A NAME="s7">7. Using bzip2 with wu-ftpd</A></H2>

<P>Thanks to Arnaud Launay for this bandwidth saver.  The following should
go in /etc/ftpconversions to do on-the-fly compressions and decompressions
with bzip2. Make sure that the paths (like /bin/compress) are right.
<P>
<PRE>
 :.Z:  :  :/bin/compress -d -c %s:T_REG|T_ASCII:O_UNCOMPRESS:UNCOMPRESS
 :   : :.Z:/bin/compress -c %s:T_REG:O_COMPRESS:COMPRESS
 :.gz: :  :/bin/gzip -cd %s:T_REG|T_ASCII:O_UNCOMPRESS:GUNZIP
 :   : :.gz:/bin/gzip -9 -c %s:T_REG:O_COMPRESS:GZIP
 :.bz2: :  :/bin/bzip2 -cd %s:T_REG|T_ASCII:O_UNCOMPRESS:BUNZIP2
 :   : :.bz2:/bin/bzip2 -9 -c %s:T_REG:O_COMPRESS:BZIP2
 :   : :.tar:/bin/tar -c -f - %s:T_REG|T_DIR:O_TAR:TAR
 :   : :.tar.Z:/bin/tar -c -Z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+COMPRESS
 :   : :.tar.gz:/bin/tar -c -z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+GZIP
 :   : :.tar.bz2:/bin/tar -c -y -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+BZIP2
</PRE>
<P>
<HR>
<A HREF="Bzip2-8.html">Next</A>
<A HREF="Bzip2-6.html">Previous</A>
<A HREF="Bzip2.html#toc7">Contents</A>
</BODY>
</HTML>