Bug 11513 - Modified rrsync to support write-only usage
Modified rrsync to support write-only usage
Status: RESOLVED FIXED
Product: rsync
Classification: Unclassified
Component: core
3.1.2
All All
: P5 enhancement
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-10 22:06 UTC by Jason A. Pfeil
Modified: 2015-09-13 23:29 UTC (History)
0 users

See Also:


Attachments
Proposed patch to add -wo option to rrsync that is mutex with existing -ro option (1.85 KB, patch)
2015-09-10 22:06 UTC, Jason A. Pfeil
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason A. Pfeil 2015-09-10 22:06:41 UTC
Created attachment 11428 [details]
Proposed patch to add -wo option to rrsync that is mutex with existing -ro option

I needed to use rrsync as a write-only solution rather than a read-write or a read-only solution.  I added an additional option -wo that does this.  It also traps the error condition that a person specifies BOTH the -ro and the new -wo options.

I'm attaching the patch in case you wanted to include it going forward.

Thank you very much.
Comment 1 Wayne Davison 2015-09-13 23:29:33 UTC
Seems like a simple and reasonable thing to add.  I appreciate the patch, though I made the change a little differently (e.g. your code wouldn't have complained about -wo -ro, though it would have complained about -ro -wo).