rsync fails to sync files
atte.peltomaki at f-secure.com
Tue May 8 08:59:17 GMT 2007
I'm seeing a weird problem with rsync 2.6.9 protocol version 29 on
Debian Sarge. When copying a file from one location to another between
two Debian boxes, if destination includes a file with same size and
name, rsync fails to see that they are not exactly the same file.
The situation originates from copying a file to a place which is
periodically rsynced onwards, and the rsync coperation takes place before
the original file transfer to the rsync source is complete.
-rwxrw---- 1 user group 109819105 Apr 2 10:48 somefile.exe*
-rwxrw---- 1 user group 109819105 2007-04-02 10:48 somefile.exe*
rsync is executed from the source with following flags:
-alvv --delete --exclude-from=file
where 'file' includes three lines:
rsync itself says about somefile.exe:
somefile.exe is uptodate
As you can see, md5sums and sha1sums reveal that the file is not the
same, even though timestamps and sizes match.
What is the exact algorithm rsync uses to determien wether a file is up
to date or not?
\ ______// Atte Peltomäki - atte.peltomaki at f-secure.com
\ \\____ UNIX System Administrator - IT Server Team
\ __// F-Secure Corp. PL 24, FIN-00181 Helsinki, Finland
\ \\ Tel: +358 9 2520 0700, direct: +358 9 2520 5423
\ // http://www.f-secure.com
\/ Integrated Solutions for Enterprise Security
More information about the rsync