1

I am trying to run rsync command to get files from my friend's pc to mine. I run following command-

rsync -avz /tftpboot/ [email protected]::/tftpboot/

I receive following result-

ERROR: The remote path must start with a module name not a / rsync error: error starting client-server protocol (code 5) at main.c(1635) [sender=3.1.1]

1
  • Are you trying to connect to the remote computer (192.168.18.2) over ssh, or over the native rsync protocol? Jul 19, 2019 at 0:05

2 Answers 2

2

Please check /etc/rsyncd.conf file. The rsync command will require module_name as prefix to the path like-

rsync -avz /tftpboot/ [email protected]::module_name/tftpboot/

The /etc/rsyncd.conf file contains module_name in square brackets like one mentioned below:

rsyncd.conf

[Module_Name]
auth users =
path = /
read only = no
uid = nobody
gid = nobody
use chroot = true
uid = root
transfer logging = true

For more details refer to following link- https://download.samba.org/pub/rsync/rsyncd.conf.html

0
rsync -avz /tftpboot/ [email protected]::/tftpboot/

You can remove the double comma and turn it into:

rsync -avz /tftpboot/ [email protected]:/tftpboot/

This will probably make it work but might not be exactly what you're after. See comment by https://superuser.com/users/129262/mgutt.

3
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Apr 12, 2022 at 16:17
  • 1
    The two colons have a special meaning: Use rsync daemon instead of SSH. So your answer is sadly wrong.
    – mgutt
    Jul 28, 2022 at 8:40
  • Yes and no. In my case I didn't want to use the rsync daemon, I just wanted to get the files from the remote server → thus pragmatically speaking it was a working solution.
    – Ovi Trif
    Aug 1, 2022 at 14:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .