--link-dest

Alan Batie alan at batie.org
Sat Dec 15 01:50:53 GMT 2007


Clearly I'm missing something about --link-dest; I know it works because 
rsnapshot is doing the right thing on this system, but it's not on 
another system, and I'm trying to troubleshoot that.  The first step is 
to be able to verify that --link-dest works on it, but I can't even get 
it to work in an known-good environment --- no matter how I specify the 
args to it, it's copying the file rather than linking --- the b.0/x/y/z 
file should have an inode of 7439904, and it's getting a new one: 
7439910.  Hopefully someone can point me at the error of my ways...

<agora.rdrop.com> [150] $ lf -ilR
total 4
7439897 drwxr-xr-x  3 alan  staff  512 Dec 14 17:27 b.1/
7437112 drwxr-xr-x  3 alan  staff  512 Dec 14 17:26 x/

./b.1:
total 2
7439900 drwxr-xr-x  3 alan  staff  512 Dec 14 17:26 x/

./b.1/x:
total 2
7439902 drwxr-xr-x  2 alan  staff  512 Dec 14 17:26 y/

./b.1/x/y:
total 2
7439904 -rw-r--r--  1 alan  staff  11 Dec 14 17:26 z

./x:
total 2
7437113 drwxr-xr-x  2 alan  staff  512 Dec 14 17:26 y/

./x/y:
total 2
7437114 -rw-r--r--  1 alan  staff  11 Dec 14 17:26 z
<agora.rdrop.com> [151] $ rsync -a --link-dest=b.1 x b.0
<agora.rdrop.com> [152] $ lf -il b.0/x/y/z
7439910 -rw-r--r--  1 alan  staff  11 Dec 14 17:26 b.0/x/y/z
<agora.rdrop.com> [153] $ rm -r b.0
<agora.rdrop.com> [154] $ rsync -a --link-dest=b.1/ x b.0
<agora.rdrop.com> [155] $ lf -il b.0/x/y/z
7439910 -rw-r--r--  1 alan  staff  11 Dec 14 17:26 b.0/x/y/z
<agora.rdrop.com> [156] $ rm -r b.0
<agora.rdrop.com> [157] $ rsync -a --link-dest=b.1/x x b.0
<agora.rdrop.com> [158] $ lf -il b.0/x/y/z
7439910 -rw-r--r--  1 alan  staff  11 Dec 14 17:26 b.0/x/y/z
<agora.rdrop.com> [159] $ rm -r b.0
<agora.rdrop.com> [160] $ rsync -a --link-dest=b.1/x/ x b.0
<agora.rdrop.com> [161] $ lf -il b.0/x/y/z
7439910 -rw-r--r--  1 alan  staff  11 Dec 14 17:26 b.0/x/y/z


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3263 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.samba.org/archive/rsync/attachments/20071214/e4744935/smime.bin


More information about the rsync mailing list