From owner-freebsd-questions@FreeBSD.ORG Mon Mar 20 12:11:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 0FB9116A400 for ; Mon, 20 Mar 2006 12:11:05 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from asmtp-out3.blueyonder.co.uk (asmtp-out3.blueyonder.co.uk [195.188.213.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E96843D46 for ; Mon, 20 Mar 2006 12:11:03 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.229.4] (helo=[192.168.0.2]) by asmtp-out3.blueyonder.co.uk with esmtp (Exim 4.52) id 1FLJDz-0005km-0u; Mon, 20 Mar 2006 12:11:03 +0000 Message-ID: <441E9BD6.6020105@dial.pipex.com> Date: Mon, 20 Mar 2006 12:11:02 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.12) Gecko/20060305 X-Accept-Language: en MIME-Version: 1.0 To: Pat Maddox References: <810a540e0603191605p3e74376csa12475dd14d36a3@mail.gmail.com> In-Reply-To: <810a540e0603191605p3e74376csa12475dd14d36a3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: /home is symlinked to /usr/home - question about backups X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Mar 2006 12:11:05 -0000 Pat Maddox wrote: > However if I run rsync -avz to back up my >server, it creates something like this: > >/backup/march/19/home -> /usr/home > >So if I were to go to /backup/march/19 and rm -rf * wouldn't it go and >delete everything in /usr/home? > Should add: In you shell, alias rm to "rm -i" which will ask you about deleting anything and everything. For an rm -r, once you are *sure* that you are deleting the right thing, you can ^C, pull back your command line and edit it to say "/bin/rm ...". If you are sure you are deleting the right thing, and if you always edit the command line then you should never(*) delete something you didn't want to. (*) Of course, there will still be times when you are not paying enough attention and still manage to delete something you didn't intend to, but those times should be greatly reduced :-) --Alex