I am trying to simply copy a file from to

I'm executing the following command from a ubuntu VM at ip (I'm trying to do a pull, if i'm not wrong in the term)

rsync rsync://realtebo@ /etc/pihole/black.list

In the .225 I created the pihole_conf as follows

realtebo@$ cat /etc/rsyncd.conf
comment = Pihole configuration
path = /etc/pihole
auth users = realtebo
hosts allow = *
hosts deny = * 
list = false 

This is the error

@ERROR: Unknown module 'pihole_conf'
rsync error: error starting client-server protocol (code 5) at main.c(1666) [Receiver=3.1.2]

I'd like an help to understand the source of the problem.

  • I believe the syntax is rsync://user@host::module/.... Or just user@host::module/.... – Kusalananda Aug 13 '18 at 14:39
  • According to the man page, rsync://[user@]host/module/ is correct. But has the rsync daemon been restarted after modifying the configuration file? – telcoM Aug 13 '18 at 14:41

You are both allowing and denying all possible hosts from that module.

Remove the hosts deny = * line and it should work.

You do have a secrets file defined, I hope, which contains the allowed user and the corresponding password. It looks like you don't, but perhaps you redacted some of the rsyncd.conf contents without telling us.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.