Am 14.11.19 um 10:54 schrieb Paul Slootman via rsync: > You need to specify the source directory as the link-dest directory.
Hi, I tried it also because it's an old question which has never worked for me. Instead it creates copies and not hard links: pierre@in94:~/tmp$ ls -li a b a: insgesamt 8 257315 -rw-r--r-- 1 pierre pierre 4 Nov 14 10:53 1 257316 -rw-r--r-- 1 pierre pierre 6 Nov 14 10:53 2 b: insgesamt 0 pierre@in94:~/tmp$ rsync -av --link-dest=a a/ b/ sending incremental file list --link-dest arg does not exist: a ./ 1 2 sent 194 bytes received 95 bytes 578.00 bytes/sec total size is 10 speedup is 0.03 pierre@in94:~/tmp$ ls -li a b a: insgesamt 8 257315 -rw-r--r-- 1 pierre pierre 4 Nov 14 10:53 1 257316 -rw-r--r-- 1 pierre pierre 6 Nov 14 10:53 2 b: insgesamt 8 257312 -rw-r--r-- 1 pierre pierre 4 Nov 14 10:53 1 257313 -rw-r--r-- 1 pierre pierre 6 Nov 14 10:53 2 Any idea why it's not working? Using cp -l is working well: pierre@in94:~/tmp$ ls -li a b a: insgesamt 8 257315 -rw-r--r-- 1 pierre pierre 4 Nov 14 10:53 1 257316 -rw-r--r-- 1 pierre pierre 6 Nov 14 10:53 2 b: insgesamt 0 pierre@in94:~/tmp$ cp -l a/* b/. pierre@in94:~/tmp$ ls -li a b a: insgesamt 8 257315 -rw-r--r-- 2 pierre pierre 4 Nov 14 10:53 1 257316 -rw-r--r-- 2 pierre pierre 6 Nov 14 10:53 2 b: insgesamt 8 257315 -rw-r--r-- 2 pierre pierre 4 Nov 14 10:53 1 257316 -rw-r--r-- 2 pierre pierre 6 Nov 14 10:53 2 Cheers, Pierre -- 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