WDef
Group: Members
Posts: 798
Joined: Sep. 2005 |
|
Posted: Sep. 21 2005,13:03 |
|
lzop is the *fastest* compression utility around. It compresses on average three times faster than gzip.
I've hacked backup/restore (again) to use lzop. If lzop is not installed, the hack defaults to using gzip. The speed increase, especially when backing up, is substantial. Yet the resulting archives are only slightly larger.
Results (p3, device=hd):
Non-encrypted backup with gzip --> 42.04MB = 46.7 seconds Same non-encrypted backup with lzop --> 46.72MB =5.8 seconds !!
Non-encrypted restore with gzip --> 5.8 seconds Same non-encrypted restore with lzop --> 2.24 seconds !!
Encrypted backup with gzip --> 42MB = 54 seconds Same encrypted backup with lzop --> 46.72 MB = 14.1seconds !!
Encrypted restore with gzip --> 14.2 seconds Same encrypted restore with lzop --> 11.1 seconds !!
The hacked scripts are backwards-compatible with gzipped tarballs. This enables:
1. Painless user migration from plain or encrypted gzipped backups to lzopped backups - just place the extensions (see below) on your mydsl partition and reboot.
2. Old copies of gzipped tarballs continue to be restorable.
3. Remastering to add the scripts to the base does not mean lzop must be added or always loaded. Without lzop, backup/restore should proceed using gzip.
To test: ~~~~~~
The altered scripts and lzop are inside extensions.
1. Download this (r click, "save as") and re-name fastbackup.dsl md5sum 7d8996a88d83c1e9a706a849ef70d656 (please check)
also this and re-name lzop.dsl md5sum a750aaf85deb4cd7041802c5d9bf17ef (please check)
2. Place both extensions on your mydsl partition and reboot including the mydsl={your_mydsl_partition} and restore/protect options, as appropriate for your existing gzipped tarball. A normal restore using gzip should then occur.
3. When finished, hit 'backup' from the system menu or reboot. Notice the increase in backup speed. Check your backup partition - you should find backup.lzo.des (if using 'protect'), or a new file backup.tar.lzo
4. On booting up again, the hacked script will try to find & restore one of backup.lzo.des, backup.gz.des, backup.des (old), backup.tar.lzo and backup.tar.gz (in that order). If the candidate archive doesn't exist, or there is no 'protect' password or lzop where required, then the next candidate is found and restored if possible.
See the screen messages for details.
Unofficial scripts. No warranty, use AYOR, make copies of your tarballs beforehand, etc.
(Many thanks go to Robert and others who have encouraged me recently).
|