From owner-freebsd-questions@FreeBSD.ORG Tue Oct 5 18:47:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7C6916A4CE for ; Tue, 5 Oct 2004 18:47:12 +0000 (GMT) Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26E4C43D58 for ; Tue, 5 Oct 2004 18:47:12 +0000 (GMT) (envelope-from l0rd@xs4all.nl) Received: from webmail.xs4all.nl (webmail8.xs4all.nl [194.109.22.168]) by smtp-vbr1.xs4all.nl (8.12.11/8.12.11) with SMTP id i95IlADS096374 for ; Tue, 5 Oct 2004 20:47:11 +0200 (CEST) (envelope-from l0rd@xs4all.nl) Received: from 82.217.116.43 (SquirrelMail authenticated user l0rd) by webmail.xs4all.nl with HTTP; Tue, 5 Oct 2004 20:47:11 +0200 (CEST) Message-ID: <13386.82.217.116.43.1097002031.squirrel@webmail.xs4all.nl> Date: Tue, 5 Oct 2004 20:47:11 +0200 (CEST) From: l0rd@xs4all.nl To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.2 [CVS] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: Why is data linked to data-dist X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 18:47:13 -0000 LB wrote: > Greetings, > > I have a general question that I hope someone can help me with. I was > wondering why the powers that be have chosen to link /usr/local/www/data > to /usr/local/www/data-dist instead of just creating > /usr/local/www/data-dist directly. Can anybody help me with the idea behind > this ? This reduces the possibility of people losing their data during an upgrade. If you portupgrade (or use any other system) to upgrade to a newer version of Apache, data-dist will be overwritten with the new documentation that comes with the new version of Apache. data will not be touched. As a result, if you left data as a symlink to data-dist, it still works and shows you the most updated documentation. However, if relink data to a different directory, or replace the symlink with a real directory with your site in it, the upgrade doesn't obliterate your data.