Menu

#20 lzma compression support

open
nobody
None
5
2006-12-08
2006-12-08
John Dong
No

I implemented lzma compression in the flexbackup script. LZMA is an open source, non-patent-encumbered compressor that compresses around 15% better than bzip2 though it is more time consuming. This is also the compression algorithm in popular 7zip, but p7zip didn't support both stdin and stdout piping in the same command, so I resorted to lzma.

Currently it does not allow specifying any compression levels but defaults to the maximum, which IMO is the optimum behavior. LZMA supports two levels of compression: 0 and 1. 0 compresses almost identically to bzip2 and 1 compresses better and slower.

Please consider inclusion in flexbackup

(I didn't implement log compression in lzma, because I couldn't see the point of being so compression-greedy with a tiny logfile... :D)

Discussion

  • John Dong

    John Dong - 2006-12-09
     
  • John Dong

    John Dong - 2006-12-09

    Logged In: YES
    user_id=736418
    Originator: YES

    Here's an updated version of this patch, designed for the newer packagings of lzma, such as found in Debian/Ubuntu in 4.43-2 and above. The earlier lzma's also had trouble breaking the 4GB barrier, which is a bad thing (tm) in the context of backups!

    Now, lzma supports gzip-like syntax with -1 through -9 for compression values and compatible flags to gzip.
    File Added: flexbackup

     
  • Gustavo Felisberto

    Logged In: YES
    user_id=353642
    Originator: NO

    About to add this to the gentoo release.

     
  • John Dong

    John Dong - 2007-01-15

    Logged In: YES
    user_id=736418
    Originator: YES

    Cool, glad to see its adoption outside Ubuntu! Be sure that gentoo's lzma takes gzip-like arguments with the latter patch, or use the former one. they are mutually exclusive :)

    (The gzip-like lzma will be the future lzma, so it's better to adopt that :) )

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.