rsync, samba and read-only files
Posted on 2001-07-11
I'm using rsync to keep two samba-mounted directory trees (serverd by Windoze 2000 server) synchronised.
rsync seems to work by creating a new version of changed files, then renaming it over the top of the old version.
Windoze does not allow renaming over the top of read-only files, so this request (via SAMBA) fails.
currently I "chmod --rec 777" before the rsync, really ugly but it works (mostly... slows things down, some side-effects). "find"-ing R/O files and only mangling those is an improvement, but no answer.
moving the files to the linux server is currently not an option (darn!!!).
Any ideas on how to get around this?