Solved

Restoring a specific directory from a tgz file

Posted on 2006-10-20
3
338 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
Comment Utility
tar -zxvf  full.20061013-233001.tgz home/Peachtree/*
0
 

Author Comment

by:funaroma
Comment Utility
giving it a try now, will post back shortly!
0
 

Author Comment

by:funaroma
Comment Utility
that did the trick.  THANKS!
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

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,…
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.
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.

744 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

17 Experts available now in Live!

Get 1:1 Help Now