Backup to NTFS USB drive --compare-dest not working
Sergey Shatokhin
sshatokh at i.com.ua
Thu Jun 3 18:03:00 MDT 2010
When I'm running "rsync --compare-dest" on a local Linux volume (ext4) it
works as expected (duplicate files not created) however when same commands
with same options are run on NTFS USB drive (in my scenario below mounted to
/share/external/sdt5) all the files are copied regardless if they have been
updated or not. I have spent many hours trying to figure out what could be
wrong and trying different options, still I have no idea how to make it
work. I will appreciate any help.
I have set up following directories for my test:
SourceDir/
FullBackupDir/
IncBackupDir/
NtfsFullBackupDir -> /share/USBDisk2/TMP/NtfsFullBackupDir/
NtfsIncBackupDir -> /share/USBDisk2/TMP/NtfsIncBackupDir/
Following commands work as expected, the files are copied from the source
directory only to the "full backup" directories and not to the "inc backup"
directories:
[~/test] # rsync -avh --delete SourceDir/ FullBackupDir/
[~/test] # rsync -avh --compare-dest=/root/test/FullBackupDir SourceDir/
IncBackupDir/
But for some reason following commands have different results: nothing is
copied to IncBackupDir (absolutely correct behaviour!) however all files are
copied from SourceDir to NtfsIncBackupDir again - why?
[~/test] # rsync -avh --compare-dest=/root/test/FullBackupDir SourceDir/
IncBackupDir/
[~/test] # rsync -avh --compare-dest=/root/test/NtfsFullBackupDir SourceDir/
NtfsIncBackupDir/
Complete log is below:
[~/test] # rsync -avh --delete SourceDir/ FullBackupDir/
sending incremental file list
./
1.txt
2.txt
sent 171 bytes received 53 bytes 448.00 bytes/sec
total size is 6 speedup is 0.03
[~/test] # rsync -avh --compare-dest=/root/test/FullBackupDir SourceDir/
IncBackupDir/
sending incremental file list
./
sent 79 bytes received 15 bytes 188.00 bytes/sec
total size is 6 speedup is 0.06
[~/test] # rsync -avh --delete SourceDir/ NtfsFullBackupDir/
sending incremental file list
./
1.txt
2.txt
sent 171 bytes received 53 bytes 89.60 bytes/sec
total size is 6 speedup is 0.03
[~/test] # rsync -avh --compare-dest=/root/test/NtfsFullBackupDir SourceDir/
NtfsIncBackupDir/
sending incremental file list
./
1.txt
2.txt
sent 85 bytes received 21 bytes 212.00 bytes/sec
total size is 6 speedup is 0.06
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20100604/e4282b04/attachment.html>
More information about the rsync
mailing list