From owner-freebsd-stable@FreeBSD.ORG Tue Nov 23 16:25:58 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAED11065672 for ; Tue, 23 Nov 2010 16:25:58 +0000 (UTC) (envelope-from thomas@ronner.org) Received: from mail.knopje.net (unknown [IPv6:2001:470:1f15:a0::10]) by mx1.freebsd.org (Postfix) with ESMTP id 540CB8FC12 for ; Tue, 23 Nov 2010 16:25:58 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.knopje.net (Postfix) with ESMTP id 9CB233812E for ; Tue, 23 Nov 2010 17:25:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at knopje.net Received: from mail.knopje.net ([127.0.0.1]) by localhost (hal.knopje.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vVvkGUnn4t06 for ; Tue, 23 Nov 2010 17:25:57 +0100 (CET) Received: from appelflap.local (rtutr01.ic-s.nl [213.214.96.4]) by mail.knopje.net (Postfix) with ESMTPSA id 2703638027 for ; Tue, 23 Nov 2010 17:25:57 +0100 (CET) Message-ID: <4CEBEB14.7010007@ronner.org> Date: Tue, 23 Nov 2010 17:25:56 +0100 From: Thomas Ronner User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <20101122113541.GA74719@johnny.reilly.home> <4CEA8BA6.7080009@kc8onw.net> <20101123124543.GA4751@johnny.reilly.home> <4CEBB9E1.6040403@ronner.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: ZFS backups: retrieving a few files? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2010 16:25:58 -0000 On 11/23/10 4:45 PM, Freddie Cash wrote: > On Tue, Nov 23, 2010 at 4:56 AM, Thomas Ronner wrote: >> rsync -avHxS --delete --numeric-ids /src/. /dst/. > One problem with using rsync when dealing with hard-linked files: it > doesn't like it when the source switches from hard-linked to > non-hard-linked files. You end up with a mix of hard-linked and > non-hard-linked files in the destination, with the contents of the > non-hard-linked files all mixed around. > > We just discovered this when we upgraded our Debian 4.0 (Etch) boxes > to Debian 5.0 (Lenny). On Etch, all the gzip tools are hard-links > (zcat, zless, gzip, gunzip, etc). On Lenny, they are all separate > files, and most are just shell scripts that use gzip. Doing an rsync > of a Lenny box onto a directory from an Etch box, you end up with some > hard-linked files, some regular files, and the contents of all the > files are mixed-up based on which source file (script or binary) was > read first. > > We've had to resort to clearing out the backups directory when doing a > Debian upgrade, in order to guarantee that we get a clean backup via > rsync. Thanks for this info! I'm going to try to reproduce this. Thomas.