RFE to allow dry-run against read only target

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

RFE to allow dry-run against read only target

Stuart Anderson-6
I would like to request that rsync -n to an rsync server target that is read only be supported rather than generating the following error,
ERROR: module is read only

The motivation is to allow the generation of a list of files against an rsync target that will be used by another application. Since dry-run mode does not require write access it would be convenient if the “module is read only” error message was only thrown if/when a write attempt is made and not assume write access is needed.

Thanks.

--
Stuart Anderson  [hidden email]
http://www.ligo.caltech.edu/~anderson




--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

Re: RFE to allow dry-run against read only target

Paul Slootman-5
On Fri 01 Jul 2016, Stuart Anderson wrote:

> I would like to request that rsync -n to an rsync server target that is read only be supported rather than generating the following error,
> ERROR: module is read only
>
> The motivation is to allow the generation of a list of files against an rsync target that will be used by another application. Since dry-run mode does not require write access it would be convenient if the “module is read only” error message was only thrown if/when a write attempt is made and not assume write access is needed.

Of course, one could argue that the point of the -n option is to test if
it will work when the -n option is removed. That would not be the case
here.


Paul

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

Re: RFE to allow dry-run against read only target

Perry Hutchison
Paul Slootman <[hidden email]> wrote:
> On Fri 01 Jul 2016, Stuart Anderson wrote:
> > I would like to request that rsync -n to an rsync server target that
> > is read only be supported rather than generating the following error,
> > ERROR: module is read only
> > ...
> Of course, one could argue that the point of the -n option is to test if
> it will work when the -n option is removed. That would not be the case
> here.

This could be covered by emitting a warning (rather than an error)
if the target of --dry-run is read-only.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html