Re: ZFS backups: retrieving a few files?

看板FB_stable作者時間15年前 (2010/11/24 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串10/16 (看更多)
On 11/23/10 4:45 PM, Freddie Cash wrote: > On Tue, Nov 23, 2010 at 4:56 AM, Thomas Ronner<thomas@ronner.org> 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. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
文章代碼(AID): #1Cx05dXq (FB_stable)
討論串 (同標題文章)
文章代碼(AID): #1Cx05dXq (FB_stable)