S
S
Sergey Sashkin2019-05-21 15:19:50
linux
Sergey Sashkin, 2019-05-21 15:19:50

Why does rsync give ERROR: The remote path must start with a module name not a?

hello everyone, I set up a server under rsync-deamon, I registered the config
/etc/rsuncd.conf in it

<blockquote>
max connections = 100
exclude = lost+found/
dont compress  = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2 *.rar *.7z *.mp3 *.jpg

[logs]
path = /backup/log
comment = Logs sto rage, ro local-wide access.
uid = root
gid = root
read only = yes
auth users = backup
secrets file = /etc/rsyncd.pass</blockquote>

made a backup.sh script on the client
spoiler
#!/bin/bash
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
user='backup'
host='serv.office'
source='/backup/logs'
dest='/backup/logs'
rsync -avzP --delete-after --password-file=/etc/rsyncd.pass [email protected]$host::$source $dest

when I run the script I get
ERROR: The remote path must start with a module name not a /
rsync error: error starting client-server protocol (code 5) at main.c(1648) [Receiver=3.1.2]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
putvr, 2019-05-21
@putvr

And if so?

rsync -avzP --delete-after --password-file=/etc/rsyncd.pass [email protected]$host:$source $dest

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question