Solved

Restoring a specific directory from a tgz file

Posted on 2006-10-20
3
342 Views
Last Modified: 2010-04-20
I need to restore just a specific directory out of a .tgz file, and I don't know the proper command to do it.

FILENAME:    full.20061013-233001.tgz
DIRECTORY:  /home/Peachtree

I have placed the .tgz file in a temporary directory and can extract ALL files to that directory by issuing this command after cd'ing to that directory:

tar -zxvf  full.20061013-233001.tgz

and it works fine... but I don't want ALL the directories, just the one I've mentioned above.

Can someone give me that list bit of info?

Thanks
0
Comment
Question by:funaroma
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
Chatable earned 125 total points
ID: 17777286
tar -zxvf  full.20061013-233001.tgz home/Peachtree/*
0
 

Author Comment

by:funaroma
ID: 17777402
giving it a try now, will post back shortly!
0
 

Author Comment

by:funaroma
ID: 17777429
that did the trick.  THANKS!
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get maximum transfer speed over LAN 4 116
how to configure linux OS using Ubuntu 7 69
Linux FTP Error 5 45
Check for Linux process in script 7 66
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question