Help - Search - Members - Calendar
Full Version: UNTAR single file from TAR tree!
Linuxhelp > Support > Technical Support
Diego125k
Hello everyone! I need to to uncompress "somefile.txt" from "home.tar", and this last one is inside "daily.tar.gz".

I could untar home.tar by: $tar --extract --file=daily.tar.gz path/to/home.tar

and then untar file.txt from home.tar by: $tar --extract --file=home.tar somefile.txt

finally i could "cat file.txt"...

THE PROBLEM IS: It is a daily backup and it is impossible for me to download to my linux box, then untar on my local disk.
I can SSH the server but can't untar daily.tar.gz or home.tar because of the size

How can i UNTAR just somefile.txt from home.tar, inside daily.tar.gz on the fly?

THANKS A LOT!!!
michaelk
Have you tried?
tar -zxvf daily.tar.gz somefile.txt
Diego125k
QUOTE (michaelk @ Dec 6 2011, 04:16 PM) *
Have you tried?
tar -zxvf daily.tar.gz somefile.txt


Thanks for the response.

$ tar -zxvf daily.tar.gz somefile.txt
tar: archivito.txt: Not found in archive
tar: Exiting with failure status due to previous errors

It is because somefile.txt is inside home.tar, and home.tar is inside daily.tar.gz... not at root

Thanks in advance
michaelk
I do not know of a method.
Diego125k
Oka, thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.