LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2010, 05:36 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Rep: Reputation: 46
How to find out how long a tar gzip would take, test mode?


I have a massive directory that i want to make a .tar.gz out of. Only problem is I have no idea how long the entire process would take. Without actually doing it, is there any way to guage that?

I'm guessing the answer is no, but figured I'd ask. I have to shut down services on the server before I could do it, so i'm trying to see how big of a window I would need.
 
Old 07-01-2010, 06:48 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
It will depend on three factors: read speed on the file-system you
wish to archive, CPU for compression and write speed on the file-system
you'll be putting the tgz on ... so no, no simple way to gauge it.

You *could* do a test run, and discard the result, on a subset and
interpolate (if the test data set was representative).


Cheers,
Tink
 
Old 07-01-2010, 06:49 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
Thanks Tinkster for confirming my initial thoughts.

If you do a test run, does that actually write the tgz file and stuff? or just go through the process somehow without all that i/o on the disk?
 
Old 07-01-2010, 06:57 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
No, I did mean grabbing a subset of your files to be backed up, and
actually write it out to disk - otherwise you won't get a feel for
the whole process.


Cheers,
Tink
 
Old 07-01-2010, 06:59 PM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
Gotcha. Wasn't sure if you meant there was actually a test mode too. I'll probably just grab a portion of the files and see how long that takes, then estimate from there. Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do you have to tar before gzip? rjo98 Linux - Newbie 11 08-20-2009 08:37 PM
When to use tar , gzip and tar+gzip ? tofee Linux - Newbie 4 03-31-2006 06:59 AM
tar and gzip c0c0deuz Linux - General 2 10-31-2002 04:04 PM
dd, tar and gzip nabil Linux - General 3 01-18-2002 05:51 PM
Need Serious Help With Tar And Gzip!! Please! rootlinux Linux - General 2 12-16-2001 02:39 PM


All times are GMT -5. The time now is 07:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration