From owner-freebsd-questions@FreeBSD.ORG Thu Nov 30 15:56:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6439C16A4D1 for ; Thu, 30 Nov 2006 15:56:16 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8411743CD7 for ; Thu, 30 Nov 2006 15:53:29 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.137] (helo=anti-virus01-08) by smtp-out2.blueyonder.co.uk with smtp (Exim 4.52) id 1GpoE2-0004KO-Ot; Thu, 30 Nov 2006 15:53:26 +0000 Received: from [82.46.239.57] (helo=[192.168.0.2]) by asmtp-out4.blueyonder.co.uk with esmtp (Exim 4.52) id 1GpoE1-0001kW-51; Thu, 30 Nov 2006 15:53:25 +0000 Message-ID: <456EFE74.2000406@dial.pipex.com> Date: Thu, 30 Nov 2006 15:53:24 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061106 X-Accept-Language: en MIME-Version: 1.0 To: Christian Walther , Rachel Florentine References: <20061130112939.12787.qmail@web57808.mail.re3.yahoo.com> <456EE9E2.7070606@usm.cl> <14989d6e0611300647q3974e751hd84ac4e67c80cb0c@mail.gmail.com> In-Reply-To: <14989d6e0611300647q3974e751hd84ac4e67c80cb0c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Data Recovery 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: Thu, 30 Nov 2006 15:56:16 -0000 Christian Walther wrote: > I don't think that rsync can cope with hardlinks. yes it can. From the man page: -H, --hard-links preserve hard links Slower, but it copes. > Best way to do a "backup" like this is: > > tar -clf - / | ( cd /ad2 ; tar -xf - ) Only if you want to copy every shred of data regardless of whether it changed or not, as was previously noted. --Alex PS Backup gets used to mean at least two different things: 1) A single, separate copy of the "data" for which rsync is great. Read the manpage as it has lots of configuration potential. 2) Effectively a partial transaction history for the data where you can recover a file as it was, say, a week ago, for which dump and restore are your friends. There's also a tool in the ports which does something similar with rsync and separate trees named, I think, by date, which is great if you have lots of disk space. Or you can use snapshots, and again there is a tool in the ports whose name eludes me. cd /usr/ports make search name=rsync make search name=snapshot if you care.