about --link-dest
Noel David Torres Taño
envite at rolamasao.org
Thu Dec 10 17:25:07 MST 2009
Hello all:
I don't know what I'm doing bad, but --link-dest does not work for me:
I have three directories, the original one, the first copy and the second copy I want to populate:
$ ls -li
total 12
1761433 drwxr-xr-x 2 envite envite 4096 dic 10 14:04 copy1
1761434 drwxr-xr-x 2 envite envite 4096 dic 11 01:18 copy2
1761432 drwxr-xr-x 2 envite envite 4096 dic 10 14:04 origin
$ ls -li *
copy1:
total 4
1761436 -rw-r--r-- 1 envite envite 3 dic 10 14:04 kk
copy2:
total 0
origin:
total 4
1761435 -rw-r--r-- 1 envite envite 3 dic 10 14:04 kk
I use the --link-dest to avoid wasting extra space:
$ rsync -av --link-dest=$PWD/copy1 origin/ copy2
sending incremental file list
./
kk
sent 104 bytes received 35 bytes 278.00 bytes/sec
total size is 3 speedup is 0.02
Now I expect to see that the inode number of the kk file in copy2 is the same than the inode number of the file on copy1, but it isn't:
$ ls -li *
copy1:
total 4
1761436 -rw-r--r-- 1 envite envite 3 dic 10 14:04 kk
copy2:
total 4
1761437 -rw-r--r-- 1 envite envite 3 dic 10 14:04 kk
origin:
total 4
1761435 -rw-r--r-- 1 envite envite 3 dic 10 14:04 kk
And the file was unchanged, so it must be linked instead of copied:
$ diff origin/kk copy1/kk
$
What is happening? Or what am I doing badly?
Many thanks
Noel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.samba.org/pipermail/rsync/attachments/20091211/0135eab7/attachment.pgp>
More information about the rsync
mailing list