Bug 11513 - Modified rrsync to support write-only usage
Summary: Modified rrsync to support write-only usage
Status: RESOLVED FIXED
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.2
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
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).