LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-12-2014, 12:27 PM   #1
UprLftCstr
LQ Newbie
 
Registered: Nov 2013
Posts: 3

Rep: Reputation: Disabled
check tar progress???


I'm creating a tar prior to rebuilding a RAID array. I have run separate tar commands for each of 5 'high' level directories on the array. The largest directory is > 1TB. The tar command has been running for over a week (in background). Is there a way to determine how much of the directory has been tarred or how much remains without interrupting the command?
 
Old 06-12-2014, 12:38 PM   #2
cmj141
LQ Newbie
 
Registered: Oct 2013
Location: Scranton, PA. USA
Distribution: gentoo
Posts: 12

Rep: Reputation: 1
Yes
 
Old 06-12-2014, 12:46 PM   #3
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by cmj141 View Post
Yes
You better post an answer soon or I'm reporting your post.
 
Old 06-12-2014, 01:28 PM   #4
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Next time you should use 'pv' or 'bar' to monitor the progress. You can't do that now, because it is running.

One thing you can try is use 'ps' to find the process id and then go into '/proc/process_id/fd' where process_id is the process id, and you can check the various file descriptors there 0 is stdin, 1 is stdout, 2 is stderr. Try using tail on one of these, but it depends how you ran tar as to what info you can get.
 
  


Reply

Tags
tar



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
LXer: Red Hat's Partner Progress: A Reality Check LXer Syndicated Linux News 0 06-29-2010 11:00 AM
tar command with progress bar netpumber Linux - General 1 11-05-2009 05:54 AM
script that shows progress in a tar backup kaplan71 Linux - Software 1 03-17-2009 03:44 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
check tar consistency Vyeperman Linux - General 1 05-01-2004 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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