Share

flexbackup

Tracker: Bugs

5 lzma compression support - ID: 1611851
Last Update: Comment added ( jdong2002 )

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)


John Dong ( jdong2002 ) - 2006-12-08 21:27

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 3 )

Date: 2007-01-15 01:51
Sender: jdong2002


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
:) )


Date: 2007-01-15 01:26
Sender: humpback


About to add this to the gentoo release.


Date: 2006-12-09 02:14
Sender: jdong2002


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


Attached File ( 1 )

Filename Description Download
flexbackup Download

Changes ( 3 )

Field Old Value Date By
File Added 206413: flexbackup 2006-12-09 02:14 jdong2002
File Deleted 206397: 2006-12-09 02:12 jdong2002
File Added 206397: flexbackup 2006-12-08 21:27 jdong2002