Berkeley CSUA MOTD:Entry 53816
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/03 [General] UID:1000 Activity:popular
4/3     

2010/5/4-26 [Computer/SW/Unix] UID:53816 Activity:nil
5/3     Is it possible to bzip2 on the fly? Like:
        % dump_stuff | bzip2 -stdin > dump_file.bz2
        \_ Yup, it works fine.  You don't even need a flag:
           % dump_stuff | bzip2 > dump_file.bz2
           \_ whoa, why didn't anyone tell me about this, and why is this
              not on the man page. I've been doing the stupid command
              for years:
                % mysqldump > f.sql; bzip2 f.sql
                \_ "If no file names are specified, bzip2 compresses
                    from standard input to standard output."
2025/04/03 [General] UID:1000 Activity:popular
4/3     

You may also be interested in these entries...
2004/11/29-30 [Computer/SW/Security, Computer/SW/Unix] UID:35115 Activity:low
11/29   I archived a big direcotry (3GB) using tar with bzip2 compression (-j)
        and I notice that to extract any file, tar seems to read through
        the whole archive decompressing it byte by byte and takes a VERY long
        time, no matter how small that file is.  Is there a better archive
        method?  (I am archiving on to a file, so dump does not work.)
        \_ Use zip.  The compression isn't as good, but you can access any
	...
2004/9/23 [Computer/SW/Unix, Computer/HW/Drives] UID:33715 Activity:very high
9/23    I need to make an image of a disk a disk on a different machine
        in Linux. That is, Make an image of A's disk, on B, and then
        later be able to just copy the image back on to A.
        ADDENDUM: It would be nice to be able to compress the image on the
        way out.  Tar and gzip or bzip2 I suppose.
        \_ Is this a question or an observation? I need a big-breasted
	...
2004/4/22 [Computer/SW/Unix] UID:13333 Activity:nil
4/22    So is the defactor compression program on UNIX bzip2 now? I gotta
        admit it compresses a lot better than gzip, and while it's hecka
        slow it's pretty good.
        \_ No, it's still gzip. bzip2 is only for dweebies who care about
           saving 10-20% on a file in return for 50% more compression/
           decompression time. If your internet pipe is really limited I
	...