hardlinking and -R (multiple source directories)

Kevin Korb kmk at sanitarium.net
Fri Aug 2 16:14:32 MDT 2013


-----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-----


More information about the rsync mailing list