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
signature.asc
Description: This is a digitally signed message part.
-- 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
