I find myself needing to have an option to ensure certain file permissions
are set on the destination regardless of their setting on the source. I
don't see the ability to do this in the current release, so I wanted to
ask if anyone has done this locally and just not released a patch for it
before I go ahead and modify the source code?
As an example, user foo has an account on the local and remote system. He
wishes to use rsync to synchronize files that are read-only on the source.
Since a regular user doesn't have permission to overwrite read-only files
on the destination, an rsync would fail. rsync would need to allow the
user an option to say "force the user write bit to be on."
I'm thinking something like "--perms-mask 200" would be appropriate
(except the term mask is the opposite of that for which I am going),
applying a logical OR operation to the file permissions before updating
the destination, and would override --perms. Comments?
Regards,
Christian
-----------------
Christian Gilmore
Infrastructure & Tools Team Lead
Web & Multimedia Development
IBM Software Group