Solved

Restoring a specific directory from a tgz file

Posted on 2006-10-20
3
343 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

737 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