Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create tar file from dir of symbolic links

Status
Not open for further replies.

tonykent

IS-IT--Management
Joined
Jun 13, 2002
Messages
251
Location
GB
I need to create a tar file which includes all of the files in a particular directory structure. However, nearly all of the files in that structure are actually symbolic links.

Can you tell me of a way to get the tar to include all of the files which are the sources of those links?

 
Tony, try the h function modifier. See man tar for details. HTH.
 
Thanks for pointing me in the right direction Ken.

tar -cvfh myarchive.tar /dir

worked a treat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top