Do I need to extract the entire tar file to confirm the tar folder is fine? | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Do I need to extract the entire tar file to confirm the tar folder is fine?

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-28-2013
vivien_chu vivien_chu is offline
Registered User
 
Join Date: Apr 2012
Last Activity: 17 March 2013, 12:04 PM EDT
Location: Malaysia
Posts: 8
Thanks: 4
Thanked 0 Times in 0 Posts
RedHat Do I need to extract the entire tar file to confirm the tar folder is fine?

I would like to confirm my file.tar is been tar-ed correctly before I remove them. But I have very limited disc space to untar it.
Can I just do the listing instead of actual extract it? Can I say confirm folder integrity if the listing is sucessful without problem?


Code:
 
tar tvf file1.tar

Instead


Code:
 
tar xvf file1.tar

Sponsored Links
    #2  
Old 01-28-2013
Peasant's Avatar
Peasant Peasant is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 19 April 2014, 5:41 AM EDT
Posts: 607
Thanks: 16
Thanked 138 Times in 134 Posts
tvf switch should suffice but you can always untar it to another machine via ssh in this manner..
Of course, you will need space on that other host.

Code:
cat yourtar.tar | ssh newhost "cd /restorefolder && tar xvf -"

The Following User Says Thank You to Peasant For This Useful Post:
vivien_chu (01-29-2013)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Extract particular folder from a .tar format files. k_manimuthu Emergency UNIX and Linux Support 5 03-20-2011 03:01 PM
tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file ahSher UNIX for Dummies Questions & Answers 2 04-02-2009 04:43 AM
extract tar.gz under a specific folder melanie_pfefer Solaris 3 02-24-2009 09:20 AM
extract one file form .tar.gz without uncompressing .tar.gz file balireddy_77 Shell Programming and Scripting 2 07-10-2007 04:23 AM
TAR - how to extract to different folder hcclnoodles UNIX for Dummies Questions & Answers 2 10-26-2006 11:19 AM



All times are GMT -4. The time now is 06:08 PM.