Solved

Restoring a specific directory from a tgz file

Posted on 2006-10-20
3
339 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now