Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Dec 1997 10:20:38 -0500 
From:      ringlord@bbs.dcoisp.net
To:        freebsd-questions@freebsd.org
Subject:   A simple use of tar question.
Message-ID:  <TCPSMTP.17.12.21.10.20.38.3047923923.10604@bbs.dcoisp.net>

next in thread | raw e-mail | index | archive | help
Hello all.
I am attempting to back a portion of a webserver space for one of my
clients.
I plan to use tar and compress the file with gzip.
I only have one question.
I am a little unclear on how to preserve the symbolic links, as well as
write the data that the sym links point to.
For example.  Suppose this client is in a directory called
/home/twc-online
Within this directory, they have a directory called www.  Unfortunately,
this www directory is nothing more than a symbolic link.  When someone
changes to the /home/twc-online/www directory, they are changed to the
linked directory: /home/www/twc-online.
I see that tar has an h option that supposedly writes the data of
symbolic links instead of just writing the link itself.  Is that the way
something like this should be accomplished?  Or is there a better suited
tar option that will even work better?
Thanks for any assistance.
Jeremy





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?TCPSMTP.17.12.21.10.20.38.3047923923.10604>