Re: Calling rsync testers...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



rsync -H will preserve hard links.

Will.

Charles R. Anderson wrote:
On Thu, Jan 29, 2004 at 11:57:32AM +0200, Pekka Savola wrote:

OK, we've mirrored the whole tree, using hard-linking, but only Red


How did you do this?

I've tried pre-hardlinking my Red Hat mirror to the fedora legacy tree
(following http://www.fedora.us/wiki/FedoraMirrorHOWTO), but every
time I start rsync, it un-hardlinks the files and redownloads them.  I
moved the linked files to the single i386 and SRPMS directories for
legacy, and the dates, times, and file sizes match.  The contents are
also identical.  For example, these are commands I am using for 7.2
updates:

rm -rf \
        /home/ftp/pub/mirrors/fedora-legacy/redhat/7.2/updates/*

cp -al \
        /home/ftp/pub/mirrors/redhat/linux/updates/7.2/en/os/i[3456]86 \
        /home/ftp/pub/mirrors/redhat/linux/updates/7.2/en/os/athlon \
        /home/ftp/pub/mirrors/redhat/linux/updates/7.2/en/os/noarch \
        /home/ftp/pub/mirrors/redhat/linux/updates/7.2/en/os/SRPMS \
        /home/ftp/pub/mirrors/fedora-legacy/redhat/7.2/updates

mv \
        /home/ftp/pub/mirrors/fedora-legacy/redhat/7.2/updates/i[456]86/* \
	/home/ftp/pub/mirrors/fedora-legacy/redhat/7.2/updates/athlon/* \
        /home/ftp/pub/mirrors/fedora-legacy/redhat/7.2/updates/noarch/* \
        /home/ftp/pub/mirrors/fedora-legacy/redhat/7.2/updates/i386

rm -rf \
        /home/ftp/pub/mirrors/fedora-legacy/redhat/7.2/updates/i[456]86 \
        /home/ftp/pub/mirrors/fedora-legacy/redhat/7.2/updates/athlon \
        /home/ftp/pub/mirrors/fedora-legacy/redhat/7.2/updates/noarch

rsync -auv \
        rsync://download.fedoralegacy.org/legacy/redhat/7.2/updates \
        /home/ftp/pub/mirrors/fedora-legacy/redhat/7.2


Does anyone know how to make rsync not undo the hardlinking?


Thanks.


-- fedora-legacy-list@xxxxxxxxxx http://www.redhat.com/mailman/listinfo/fedora-legacy-list




[Index of Archives]     [Fedora Development]     [Fedora Announce]     [Fedora Legacy Announce]     [Fedora Config]     [PAM]     [Fedora General Discussion]     [Big List of Linux Books]     [Gimp]     [Yosemite Questions]

  Powered by Linux