The Samba-Bugzilla – Bug 1815
rsync locking MS windows files mounted through Samba
Last modified: 2005-03-16 16:48:19 UTC
We are using rsync for remote mirroring of filesystems. One of the servers we
are mirroring is a Windows 2000 server mounted via Samba. rsync appears to be
locking the files on the windows server - whenever rsync is running on a file
that we are also accessing, we receive sharing violations and files become
locked until the server is rebooted.
Please e-mail me @ email@example.com if you need more details.
Rsync doesn't do any file locking -- it just opens the file for reading on the
sending side. If there are locking problems, you will have to look elsewhere to
Also, it is much more efficient to run rsync on the system that is the actual
source of the data instead of on a system that mounts the data via a network
filesystem. So, if possible, change the source rsync to run on the Windows 2000
server itself and it should work better.