<div dir="ltr">Hi,<div><br></div><div>no same mountpoints. And doing a "synthetic"  test (two new directories) it works, even in the same simulated steps. (first sync dir1, then ad link after that sync dir1 and dir2 to dest (dir2 is added to dest)</div>
<div><br></div><div>not so on my "real" data</div><div><br></div><div>Here is a file of "production" data:::</div><div>src1:</div><div><br></div><div><div> ls -li  /mnt/hotswapo/storebackup/server_gen/2013.07.26_03.08.38/\$sortin_linux/natty_lirc_work/etc/fuse.conf</div>
<div>219420238 -rw-r----- 124 root root 216 Feb 10  2011 /mnt/hotswapo/storebackup/server_gen/2013.07.26_03.08.38/$sortin_linux/natty_lirc_work/etc/fuse.conf</div></div><div><br></div><div>src2:</div><div><div> ls -li  /mnt/hotswapo/storebackup/server_gen/2013.07.27_03.08.46/\$sortin_linux/natty_lirc_work/etc/fuse.conf</div>
<div>219420238 -rw-r----- 124 root root 216 Feb 10  2011 /mnt/hotswapo/storebackup/server_gen/2013.07.27_03.08.46/$sortin_linux/natty_lirc_work/etc/fuse.conf</div></div><div><br></div><div>->same inode (219420238)</div>
<div><br></div><div>doing the sync</div><div><br></div><div>rsync -RavhxSDHi --stats --progress server_gen/2013.07.27_03.08.46 server_gen/2013.07.26_03.08.38 /mnt/foo/</div><div><br></div><div>checking results:</div><div>
<br></div><div><div>lroot@mediapc:/mnt/foo/server_gen# ls -li  /mnt/foo/server_gen/2013.07.26_03.08.38/\$sortin_linux/natty_lirc_work/etc/fuse.conf</div><div>868354 -rw-r----- 1 root root 216 Feb 10  2011 /mnt/foo/server_gen/2013.07.26_03.08.38/$sortin_linux/natty_lirc_work/etc/fuse.conf</div>
</div><div><br></div><div><div>root@mediapc:/mnt/foo/server_gen# ls -li  /mnt/foo/server_gen/2013.07.27_03.08.46/\$sortin_linux/natty_lirc_work/etc/fuse.conf</div><div>6523 -rw-r----- 2 root root 216 Feb 10  2011 /mnt/foo/server_gen/2013.07.27_03.08.46/$sortin_linux/natty_lirc_work/etc/fuse.conf</div>
</div><div><br></div><div>result: different inodes, not hardlinked</div><div><br></div><div>Greetings</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 3, 2013 at 1:05 AM, Kevin Korb <span dir="ltr"><<a href="mailto:kmk@sanitarium.net" target="_blank">kmk@sanitarium.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div>Oooops, I replied but I didn't reply to the list...<br>
<div class="im"><br>
Are the two sources on different NFS mounts?  If they are are hard<br>
links then obviously they are on the same file system on the server<br>
but if the NFS client has them in 2 different mounts rsync would<br>
probably not realize that they are linked together.<br>
<br>
</div><div class="im">On 08/02/13 19:03, - wrote:<br>
><br>
> Hi,<br>
><br>
> ok did a sample test like your test and it worked. But using my<br>
> real directories (roughly a million files) it does not work. Never<br>
> had problems before with hardlinking.<br>
><br>
> Is there anything I could do to narrow down the problem? (Version<br>
> 3.0.9 on wheezy 64bit)<br>
><br>
> source is on NFS, dest is on AUFS (could be problematic) but the<br>
> small sample like you did was perfectly fine. I used same options<br>
> and path scheme in both tests.<br>
><br>
> Thanks<br>
><br>
> lopiuh<br>
><br>
><br>
> On Sat, Aug 3, 2013 at 12:14 AM, Kevin Korb <<a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a><br>
</div><div><div class="h5">> <mailto:<a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a>>> wrote:<br>
><br>
> # ls -li /tmp/src?/testfile 3349750 -rw-r--r-- 2 root root 0 Aug  2<br>
> 18:12 /tmp/src1/testfile 3349750 -rw-r--r-- 2 root root 0 Aug  2<br>
> 18:12 /tmp/src2/testfile # rsync -RvaiH /tmp/src1 /tmp/src2<br>
> /tmp/target sending incremental file list created directory<br>
> /tmp/target cd+++++++++ /tmp/ cd+++++++++ /tmp/src1/ cd+++++++++<br>
> /tmp/src2/<br>
>> f+++++++++ /tmp/src2/testfile<br>
> hf+++++++++ /tmp/src1/testfile => tmp/src2/testfile<br>
><br>
> sent 192 bytes  received 68 bytes  520.00 bytes/sec total size is 0<br>
> speedup is 0.00 # ls -li /tmp/target/tmp/src?/testfile 3351917<br>
> -rw-r--r-- 2 root root 0 Aug  2 18:12<br>
> /tmp/target/tmp/src1/testfile 3351917 -rw-r--r-- 2 root root 0 Aug<br>
> 2 18:12 /tmp/target/tmp/src2/testfile<br>
><br>
><br>
> On 08/02/13 18:11, Kevin Korb wrote:<br>
>> It works for me in 3.0.9.  Are you on an older version?<br>
><br>
>> On 08/02/13 18:08, - wrote:<br>
>>> Hi,<br>
><br>
>>> hardlinking (-H) works perfectly while using a syntax like<br>
>>> -avhxSDH <SRC> <DEST><br>
><br>
>>> Now I have to mirror multiple SRC directories which contain<br>
>>> hardlinks. e. g: src1/a is a hardlink to src2/b<br>
><br>
>>> -RavhxSDH SRC1 SRC2 DEST<br>
><br>
>>> does not preserve hardlink a and b in DEST. Is there any<br>
>>> chance to do that?<br>
><br>
>>> Thanks<br>
><br>
>>> lopiuh<br>
><br>
><br>
><br>
><br>
><br>
</div></div><div class="im">> -- Please use reply-all for most replies to avoid omitting the<br>
> mailing list. To unsubscribe or change options:<br>
> <a href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a> Before posting,<br>
> read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
><br>
><br>
><br>
><br>
><br>
<br>
</div><div class="im">- --<br>
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>
        Kevin Korb                      Phone:    <a href="tel:%28407%29%20252-6853" value="+14072526853">(407) 252-6853</a><br>
        Systems Administrator           Internet:<br>
        FutureQuest, Inc.               Kevin@FutureQuest.net  (work)<br>
        Orlando, Florida                <a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a> (personal)<br>
        Web page:                       <a href="http://www.sanitarium.net/" target="_blank">http://www.sanitarium.net/</a><br>
        PGP public key available on web site.<br>
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.20 (GNU/Linux)<br>
Comment: Using GnuPG with Thunderbird - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
</div>iEYEARECAAYFAlH8Oz4ACgkQVKC1jlbQAQfPSwCfbyyJT3cNiZWLZStUcaqDHO39<br>
g18AoLAwd8KznwQVted+xp0sqGjpo6Tv<br>
=6Sgw<br>
<div class="HOEnZb"><div class="h5">-----END PGP SIGNATURE-----<br>
--<br>
Please use reply-all for most replies to avoid omitting the mailing list.<br>
To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a><br>
Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
</div></div></blockquote></div><br></div>