Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
yes, but it's a lot slower too. both gzip and bzip2 take arguments -1 through -9. -1 being fastest and -9 being slowest.
/usr# time tar clfj - share > share.tar.bz2; ls -l share.tar.bz2
real 3m23.895s
user 3m12.188s
sys 0m2.826s
97260 -rw-r--r-- 1 root root 99594240 Aug 27 04:38 share.tar.bz2
/usr# time tar clfz - share > share.tar.gz; ls -l share.tar.gz
real 0m27.745s
user 0m24.088s
sys 0m2.908s
102772 -rw-r--r-- 1 root root 105236480 Aug 27 04:40 share.tar.gz
usually bzip2 makes more of a difference than it did there.
Originally posted by Frustin you mean an "uphill struggle", if your going uphill you are by default climbing. </pendent>
Not necessarily; I rode a ski lift once that conveyed me uphill in a way far more terrifying than anything Linux has thrown my way yet. (I have a great fear of heights.)
Originally posted by whansard yes, but it's a lot slower too. both gzip and bzip2 take arguments -1 through -9. -1 being fastest and -9 being slowest.
/usr# time tar clfj - share > share.tar.bz2; ls -l share.tar.bz2
real 3m23.895s
user 3m12.188s
sys 0m2.826s
97260 -rw-r--r-- 1 root root 99594240 Aug 27 04:38 share.tar.bz2
/usr# time tar clfz - share > share.tar.gz; ls -l share.tar.gz
real 0m27.745s
user 0m24.088s
sys 0m2.908s
102772 -rw-r--r-- 1 root root 105236480 Aug 27 04:40 share.tar.gz
usually bzip2 makes more of a difference than it did there.
That is a big difference. I, too had read that bzip2 was more reliable but also slower; had never seen an actual comparison before of the time involved.
I like often to turn my machine off at night (it's not a server), so I do like to be able to backup during actual use--but a lot of files if in use at the moment by an application either don't get copied correctly, or else they don't get copied at all. So that's a consideration...
I've been seeking the best backup routine for almost two years now and I'm still about where I started.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
i like dar. it has a lot of the features of dump, but works on different filesystems. you can do full backup or just backup files that changed since the last backup.
and i meant that bzip2 usually makes a bigger file size difference than above.
Originally posted by whansard i like dar. it has a lot of the features of dump, but works on different filesystems. you can do full backup or just backup files that changed since the last backup.
Thanks -- I'll take another look at dar. Quite a while ago I downloaded it, don't remember why I didn't put it into service; possibly I couldn't get it installed due to dependency problems. Will re-investigate.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.