LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 04:36 PM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
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, 05:48 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 05:49 PM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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, 05:57 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 05:59 PM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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? anon091 Linux - Newbie 11 08-20-2009 07:37 PM
When to use tar , gzip and tar+gzip ? tofee Linux - Newbie 4 03-31-2006 05:59 AM
tar and gzip c0c0deuz Linux - General 2 10-31-2002 03:04 PM
dd, tar and gzip nabil Linux - General 3 01-18-2002 04:51 PM
Need Serious Help With Tar And Gzip!! Please! rootlinux Linux - General 2 12-16-2001 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:12 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