Restoring a specific directory from a tgz file

funaroma
funaroma used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
tar -zxvf  full.20061013-233001.tgz home/Peachtree/*

Author

Commented:
giving it a try now, will post back shortly!

Author

Commented:
that did the trick.  THANKS!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial