привет всем настроил сервак под rsync-deamon в нем прописал конфинг
/etc/rsuncd.conf
<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>
на клиенте сделал скрипт
backup.sh
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 backup@$host::$source $dest
когда запускаю скрипт получаю
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]