Restoring a specific directory from a tgz file

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
funaromaAsked:
Who is Participating?
 
ChatableConnect With a Mentor Commented:
tar -zxvf  full.20061013-233001.tgz home/Peachtree/*
0
 
funaromaAuthor Commented:
giving it a try now, will post back shortly!
0
 
funaromaAuthor Commented:
that did the trick.  THANKS!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.