Re: Everything working as expected, so shouldn't ERROR be WARNING

2024-01-18 Thread Roger Price via rsync

On Thu, 18 Jan 2024, Paul Slootman via rsync wrote:

On Thu 18 Jan 2024, Roger Price via rsync wrote:

I get the messages

 sending incremental file list
 ERROR: daemon refused to receive file "rprice/demo.dvi"

I understand that the remote daemon has refused file demo.dvi because I
specifically requested that dvi files not be transferred.  I choose that
myself in a regular configuration file.  So shouldn't it be a WARNING rather
than an ERROR?  I would expect to see


In this case you're in control of both ends of the transfer, so you know
that *.dvi files won't be transferred.

However, it could be that this rsync command is being run by someone who
expects rsync to do what they asked it to do, i.e. transfer the entire
contents of .../rprice to the remote server, and the client rsync can't
fulfil that request; hence the error.

If you don't want *.dvi files to be transferred, then you should add
   --exclude '*.dvi'
to the invocation.


I accept that if the message has to cover all the cases, including hardware 
misconfigurations and errors, then ERROR is necessary.


But it would have been nice to have a specific message for exclude = ... 
effect in remote rsyncd.conf even if the user has no direct access.


Roger

--
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


Everything working as expected, so shouldn't ERROR be WARNING

2024-01-18 Thread Roger Price via rsync
I am backing up a user's directories from local machine titan to remote machine 
maria. On the remote machine maria file /etc/rsyncd.conf contains


 [rprice-home]
 ...
 exclude = *.dvi

I start the backup by using this command on the local machine titan:

 rprice@titan ~ rsync -av --dry-run /mnt/home/rprice 
rsync://rprice@maria/rprice-home

I get the messages

 sending incremental file list
 ERROR: daemon refused to receive file "rprice/demo.dvi"
 ...

I understand that the remote daemon has refused file demo.dvi because I 
specifically requested that dvi files not be transferred.  I choose that myself 
in a regular configuration file.  So shouldn't it be a WARNING rather than an 
ERROR?  I would expect to see


 WARNING: daemon refused to receive file "rprice/demo.dvi"

Roger

--
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


Interaction between hosts allow and hosts deny

2023-07-27 Thread Roger Price via rsync
I am trying to master the hosts allow module parameters described by man 
rsyncd.conf .  Quoting from the man page:


 > hosts allow
 > This parameter allows you to specify a list of comma- and/or
 > whitespace-separated patterns that are matched against a connecting client's
 > hostname and IP address.  If none of the patterns match, then the connection
 > is rejected.

I understand from this that if I specify only IPv4 addresses, no IPv6 traffic is 
accepted.  Is this correct?


Quoting again from the man page:

 > Note IPv6 link-local addresses can have a scope in the address specification:
 >  fe80::1%link1
 >  fe80::%link1/64
 >  fe80::%link1/:::::

Should I understand that the %link1 in these examples could be replaced by say 
%wlan0 or %eth0 , and that I could write fe80::%wlan0/64 ?


Roger

--
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