From owner-freebsd-questions Sun Dec 21 10:19:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA16288 for questions-outgoing; Sun, 21 Dec 1997 10:19:41 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from bbs.dcoisp.net (bbs.dcoisp.net [208.128.192.226]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id KAA16283 for ; Sun, 21 Dec 1997 10:19:38 -0800 (PST) (envelope-from ringlord@bbs.dcoisp.net) From: ringlord@bbs.dcoisp.net Received: from MHS by bbs.dcoisp.net with MHS id AKBECGAF ; Sun, 21 Dec 1997 10:20:54 -0500 Date: Sun, 21 Dec 1997 10:20:38 -0500 Message-ID: Subject: A simple use of tar question. To: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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