LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 08-27-2004, 07:26 AM   #16
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65

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.
 
Old 08-27-2004, 08:40 AM   #17
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Quote:
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.)
 
Old 08-27-2004, 08:45 AM   #18
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Quote:
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.
 
Old 08-27-2004, 09:06 PM   #19
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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.

Last edited by whansard; 08-27-2004 at 09:08 PM.
 
Old 08-27-2004, 09:14 PM   #20
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Quote:
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying hidden files recursively? mrd Linux - General 1 09-30-2005 07:51 AM
home directory files gone, hidden files remain Grasshopper Linux - Security 12 04-10-2005 08:23 PM
hidden files Alwyn Linux - Newbie 2 01-27-2005 12:20 AM
Hidden Files Alien18 Linux - Newbie 4 08-12-2004 09:38 PM
Copying Hidden Directories Guru3 Linux - General 1 12-05-2003 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration