Problem with incremental backup - copies instead of hard links

Mischa mischa77 at gmx.net
Mon Oct 4 04:53:18 GMT 2004


Hi there,

I'm using this version of rsync:
localhost:~ mzehetle$ /usr/local/bin/rsync --version
rsync  version 2.6.0  protocol version 27
Copyright (C) 1996-2004 by Andrew Tridgell and others
HFS+ filesystem support for OSX (C)2004 Kevin A. Boyd
<http://rsync.samba.org/>


Basically incremental backup (--link-dest option) works with a 
destination on my local volume but not with a destination on a firewire 
volume. I have no idea why.
The only difference between the scripts is the destination and 
--link-dest path.
If both paths are on the local harddisk, it works properly, if the path 
is on a firewire disk it doesn't.

Here are the scripts and the terminal results:

The script that works (destination path on local harddisk):
#rotating backup script - v1.0
rm -rf "/Users/mzehetle/Dokumente/Mischa Leben/1 Arbeit/Backup Almaas 
Test/Backup Test.2"
mv -f "/Users/mzehetle/Dokumente/Mischa Leben/1 Arbeit/Backup Almaas 
Test/Backup Test.1" "/Users/mzehetle/Dokumente/Mischa Leben/1 
Arbeit/Backup Almaas Test/Backup Test.2"
mv -f "/Users/mzehetle/Dokumente/Mischa Leben/1 Arbeit/Backup Almaas 
Test/Backup Test.0" "/Users/mzehetle/Dokumente/Mischa Leben/1 
Arbeit/Backup Almaas Test/Backup Test.1"
time /usr/local/bin/rsync -vv --delete 
--rsync-path=/usr/local/bin/rsync -a --stats --progress --eahfs 
--showtogo --link-dest="/Users/mzehetle/Dokumente/Mischa Leben/1 
Arbeit/Backup Almaas Test/Backup Test.1/" 
"/Users/mzehetle/Dokumente/Mischa Leben/1 Arbeit/Almaas" 
"/Users/mzehetle/Dokumente/Mischa Leben/1 Arbeit/Backup Almaas 
Test/Backup Test.0/"

The script that shows different behavior (destination path on a mounted 
firewire harddisk):
#rotating backup script - v1.0
rm -rf "/Volumes/mac backup/backup/Test/Backup Test.2"
mv -f "/Volumes/mac backup/backup/Test/Backup Test.1" 
"/Users/mzehetle/Dokumente/Mischa Leben/1 Arbeit/Backup Almaas 
Test/Backup Test.2"
mv -f "/Volumes/mac backup/backup/Test/Backup Test.0" "/Volumes/mac 
backup/backup/Test/Backup Test.1"
time /usr/local/bin/rsync -vv --rsh="ssh -l root" 
--rsync-path=/usr/local/bin/rsync -a  --stats  --progress --eahfs  
--showtogo   --link-dest="/Volumes/mac backup/backup/Test/Backup 
Test.1/" "/Users/mzehetle/Dokumente/Mischa Leben/1 Arbeit/Almaas" 
"/Volumes/mac backup/backup/Test/Backup Test.0/"


Result for the first script:
Last login: Mon Oct  4 06:47:21 on ttypd
/Users/mzehetle/Backup/Test\ Local.command; exit
Welcome to Darwin!
localhost:~ mzehetle$ /Users/mzehetle/Backup/Test\ Local.command; exit
building file list ...
expand file_list to 4000 bytes, did move
8 files to consider
created directory /Users/mzehetle/Dokumente/Mischa Leben/1 
Arbeit/Backup Almaas Test/Backup Test.0
deleting in Almaas
delta-transmission disabled for local transfer or --whole-file
Almaas/
total: matches=0  tag_hits=0  false_alarms=0 data=0

Number of files: 8
Number of files transferred: 0
Total file size: 27923234 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 520
Total bytes written: 536
Total bytes read: 20

wrote 536 bytes  read 20 bytes  1112.00 bytes/sec
total size is 27923234  speedup is 50221.64

real    0m0.094s
user    0m0.010s
sys     0m0.040s
logout
[Prozess beendet]

The result for the second script:
Last login: Mon Oct  4 06:41:05 on ttypc
/Users/mzehetle/Backup/Test\ Firewire.command; exit
Welcome to Darwin!
localhost:~ mzehetle$ /Users/mzehetle/Backup/Test\ Firewire.command; 
exit
building file list ...
expand file_list to 4000 bytes, did move
8 files to consider
created directory /Volumes/mac backup/backup/Test/Backup Test.0
deleting in Almaas
delta-transmission disabled for local transfer or --whole-file
Almaas/
Almaas/.DS_Store
        6148 100%    0.00kB/s    0:00:00
Almaas/Almaas Zitat Zettel.doc
       19968 100%    0.00kB/s    0:00:00
Almaas/Novell, Präsentation flat_3d_icons Kopie.ppt
    13854208 100%   12.76MB/s    0:00:01
Almaas/Novell, Präsentation flat_3d_icons.ppt
    13854208 100%   16.05MB/s    0:00:00
Almaas/Präsentation Inner Journey Home.ppt
      121344 100%   10.56MB/s    0:00:00
Almaas/Ridhwan – School  application form.doc
       30720 100%    0.00kB/s    0:00:00
Almaas/Spacecruiser Inquiry.doc
rsync complete.
       36352 100%   15.63MB/s    0:00:00
Almaas/Spacecruiser Inquiry.doc/..namedfork/rsrc
         286 100%    0.00kB/s    0:00:00
total: matches=0  tag_hits=0  false_alarms=0 data=27923234

Number of files: 8
Number of files transferred: 7
Total file size: 27923234 bytes
Total transferred file size: 27922948 bytes
Literal data: 27923234 bytes
Matched data: 0 bytes
File list size: 520
Total bytes written: 27927514
Total bytes read: 160

wrote 27927514 bytes  read 160 bytes  11171069.60 bytes/sec
total size is 27923234  speedup is 1.00

real    0m2.549s
user    0m0.770s
sys     0m0.560s
logout
[Prozess beendet]



More information about the rsync mailing list