Fwd: hardlinking and -R (multiple source directories)

- lopiuh at googlemail.com
Fri Aug 2 17:03:50 MDT 2013


Hi,

ok did a sample test like your test and it worked. But using my real
directories (roughly a million files) it does not work. Never had problems
before with hardlinking.

Is there anything I could do to narrow down the problem? (Version 3.0.9 on
wheezy 64bit)

source is on NFS, dest is on AUFS (could be problematic) but the small
sample like you did was perfectly fine. I used same options and path scheme
in both tests.

Thanks

lopiuh


On Sat, Aug 3, 2013 at 12:14 AM, Kevin Korb <kmk at sanitarium.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> # ls -li /tmp/src?/testfile
> 3349750 -rw-r--r-- 2 root root 0 Aug  2 18:12 /tmp/src1/testfile
> 3349750 -rw-r--r-- 2 root root 0 Aug  2 18:12 /tmp/src2/testfile
> # rsync -RvaiH /tmp/src1 /tmp/src2 /tmp/target
> sending incremental file list
> created directory /tmp/target
> cd+++++++++ /tmp/
> cd+++++++++ /tmp/src1/
> cd+++++++++ /tmp/src2/
> > f+++++++++ /tmp/src2/testfile
> hf+++++++++ /tmp/src1/testfile => tmp/src2/testfile
>
> sent 192 bytes  received 68 bytes  520.00 bytes/sec
> total size is 0  speedup is 0.00
> # ls -li /tmp/target/tmp/src?/testfile
> 3351917 -rw-r--r-- 2 root root 0 Aug  2 18:12
> /tmp/target/tmp/src1/testfile
> 3351917 -rw-r--r-- 2 root root 0 Aug  2 18:12
> /tmp/target/tmp/src2/testfile
>
>
> On 08/02/13 18:11, Kevin Korb wrote:
> > It works for me in 3.0.9.  Are you on an older version?
> >
> > On 08/02/13 18:08, - wrote:
> >> Hi,
> >
> >> hardlinking (-H) works perfectly while using a syntax like
> >> -avhxSDH <SRC> <DEST>
> >
> >> Now I have to mirror multiple SRC directories which contain
> >> hardlinks. e. g: src1/a is a hardlink to src2/b
> >
> >> -RavhxSDH SRC1 SRC2 DEST
> >
> >> does not preserve hardlink a and b in DEST. Is there any chance
> >> to do that?
> >
> >> Thanks
> >
> >> lopiuh
> >
> >
> >
> >
>
> - --
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
>         Kevin Korb                      Phone:    (407) 252-6853
>         Systems Administrator           Internet:
>         FutureQuest, Inc.               Kevin at FutureQuest.net  (work)
>         Orlando, Florida                kmk at sanitarium.net (personal)
>         Web page:                       http://www.sanitarium.net/
>         PGP public key available on web site.
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.20 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlH8L0gACgkQVKC1jlbQAQe4zgCghVwqPLL15btcuxUqAcVdNYc6
> bLwAoMckQsk8VBcAJfBXPGIBRMvLDeN6
> =m2gZ
> -----END PGP SIGNATURE-----
> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20130803/dfc28efb/attachment.html>


More information about the rsync mailing list