Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> UNTAR single file from TAR tree!, Need to restore a single file, but cant download/untar the entire file
Diego125k
post Dec 6 2011, 01:56 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 6-December 11
Member No.: 15,737



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!!!
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies (1 - 4)
michaelk
post Dec 6 2011, 02:16 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



Have you tried?
tar -zxvf daily.tar.gz somefile.txt
Go to the top of the page
 
+Quote Post
Diego125k
post Dec 6 2011, 02:25 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 6-December 11
Member No.: 15,737



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
Go to the top of the page
 
+Quote Post
michaelk
post Dec 6 2011, 09:39 PM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



I do not know of a method.
Go to the top of the page
 
+Quote Post
Diego125k
post Dec 7 2011, 07:00 AM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 6-December 11
Member No.: 15,737



Oka, thanks
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 11th December 2017 - 07:53 PM