Date: Mon, 20 Mar 2006 12:11:02 +0000 From: Alex Zbyslaw <xfb52@dial.pipex.com> To: Pat Maddox <pergesu@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: /home is symlinked to /usr/home - question about backups Message-ID: <441E9BD6.6020105@dial.pipex.com> In-Reply-To: <810a540e0603191605p3e74376csa12475dd14d36a3@mail.gmail.com> References: <810a540e0603191605p3e74376csa12475dd14d36a3@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?441E9BD6.6020105>