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.


Sign Up Now
> UNTAR single file from TAR tree!, Need to restore a single file, but cant download/untar the entire file
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?

Go to the top of the page
+Quote Post

Posts in this topic
- Diego125k   UNTAR single file from TAR tree!   Dec 6 2011, 01:56 PM
- - michaelk   Have you tried? tar -zxvf daily.tar.gz somefile.t...   Dec 6 2011, 02:16 PM
|- - Diego125k   QUOTE (michaelk @ Dec 6 2011, 04:16 PM) H...   Dec 6 2011, 02:25 PM
- - michaelk   I do not know of a method.   Dec 6 2011, 09:39 PM
- - Diego125k   Oka, thanks   Dec 7 2011, 07:00 AM

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: 20th June 2018 - 11:46 AM