Problems with link-dest

Florian Lindner mailinglists at xgm.de
Thu May 11 20:41:33 GMT 2006


Hello,
I want to use the link-dest feature. Changed files should not be written again 
but only linked from existing location.

I execute rsync:

florian at horus ~/python $ rsync --relative --recursive -vv
"/home/florian/Desktop/back" "/home/florian/backupTest/2006-05-07"
building file list ...
done
created directory /home/florian/backupTest/2006-05-07
delta-transmission disabled for local transfer or --whole-file
home
/home/florian/
/home/florian/Desktop/
/home/florian/Desktop/back/
/home/florian/Desktop/back/file1
total: matches=0  hash_hits=0  false_alarms=0 data=4

sent 193 bytes  received 66 bytes  518.00 bytes/sec
total size is 4  speedup is 0.02


and now a second time without changing something at file1:


florian at horus ~/python $ rsync --relative --recursive -vv
--link-dest="/home/florian/backupTest/2006-05-07"
"/home/florian/Desktop/back" "/home/florian/backupTest/2006-05-07_1"
building file list ...
done
created directory /home/florian/backupTest/2006-05-07_1
delta-transmission disabled for local transfer or --whole-file
home
/home/florian/
/home/florian/Desktop/
/home/florian/Desktop/back/
/home/florian/Desktop/back/file1
total: matches=0  hash_hits=0  false_alarms=0 data=4

sent 194 bytes  received 67 bytes  522.00 bytes/sec
total size is 4  speedup is 0.02


But apparantly now hard link has been created:

florian at horus ~/backupTest/2006-05-07/home/florian/Desktop/back $ ll
insgesamt 4
-rw-r--r-- 1 florian users 4  7. Mai 13:36 file1

florian at horus ~/backupTest/2006-05-07_1/home/florian/Desktop/back $ ll
insgesamt 4
-rw-r--r-- 1 florian users 4  7. Mai 13:37 file1

And when I change one file, the other one stays unchanged.

florian at horus ~/backupTest/2006-05-07_1/home/florian/Desktop/back $ cat
file1
abc
florian at horus ~/backupTest/2006-05-07_1/home/florian/Desktop/back $ echo
"123" > file1
florian at horus ~/backupTest/2006-05-07_1/home/florian/Desktop/back $ cat
file1
123
florian at horus ~/backupTest/2006-05-07_1/home/florian/Desktop/back $ cat
~/backupTest/2006-05-07/home/florian/Desktop/back/file1
abc

What am I doing wrong?

Thanks,

Florian


More information about the rsync mailing list