On Sat, Jun 09, 2001 at 05:42:44PM -0500, Christian Gilmore <[EMAIL PROTECTED]>
wrote:
| 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.
Then don't use the -p flag. (If you're using -a at present you'll have to
replace it with the complete set of flags it represents.)
| 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.
Should work fine. Unless the target directory is also readonly. In which case,
- "chmod -R +w" the target by hand the first time
- from then on run rysnc with the -p flag, and rely
on the umask
If you have a mix of things - stuff to preserve perms and stuff not to,
then you'll need two rsync runs with and without -p/--perms and a suitable
exclusion list for each run.
Cheers,
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
When asked about his crash entering Daytona's chicane this year, Dale
Quartely said "I saw Elvis. You know you're in trouble when you see Elvis
because the next thing you see is God."