problem mit rsync

bsd4me

Well-Known Member
Hallo,

zu Hause nutze ich das rsync protocol, um Daten zu "backuppen". Geht gut bisher, aber bei einer Neuinstallation eines Backuprechners nun habe ich ein Problem - hier mit einem Testfall:

# rsync -av /etc rsync://backup:/local/backup/etc
rsync: did not see server greeting
rsync error: error starting client-server protocol (code 5) at main.c(1880) [sender=3.2.7]

und in /var/log/messages

Jan 6 17:52:59 backup inetd[3309]: /usr/local/bin/rsync[3667]: exited, status 1
Jan 6 17:58:38 backup rsyncd[3724]: rsync error: syntax or usage error (code 1) at clientserver.c(1296) [Receiver=3.2.7]

Allerdings geht

# rsync -av /etc backup:/local/backup/etc

also ohne rsync: Praäfix...

in /etc/rc.conf steht:

inetd_enable="YES"

ich habe in /etc/inetd.conf folgende Zeile eingefügt:

rsync stream tcp nowait root /usr/local/bin/rsync rsync --daemon

und in /usr/local/etc/rsync/rsyncd.conf folgendes eingetragen:

lock file = /var/run/rsyncd.lock
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
max connections = 3
timeout = 300

[host]
comment = Backup host
path = /local/backup/host
read only = no
list = yes
uid = 0
gid = 0
auth users = backup
secrets file = /usr/local/etc/rsync/rsyncd.secrets

und auch rsyncd.secrets angelegt mit "chmod 600"

Der Pfad /local/backup/host exisitert auch

Da habe ich bestimmt was übersehen - vielleicht kann mir jemand die Tomaten von den Augen nehmen .-)

VG Norbert
 
Ohne es jetzt testen zu können:

Wenn du direkt rsync ohne Shell nutzen willst musst du entweder rsync://host/pfad/ machen - also ohne den : wie in deinem Beispiel. Oder du nimmst direkt nen doppelten :, also host::/pfad/

host:/pfad/ hingegen macht über ssh
 
Danke für die Ratschläge, klar es fehlte backupuser und backuphost. Aber auch mit port geht es nicht:

# rsync -av /etc rsync://backup@backup:987/host/etc
rsync: [sender] failed to connect to backup (x.x.x.x): Connection refused (61)
rsync error: error in socket IO (code 10) at clientserver.c(139) [sender=3.2.7]

# tail /var/log/messages
Jan 7 07:39:04 backup rsyncd[1290]: rsync error: syntax or usage error (code 1) at clientserver.c(1296) [Receiver=3.2.7]
Jan 7 07:39:04 backup inetd[1060]: /usr/local/bin/rsync[1290]: exited, status 1

da fehlt wohl ein Dienst...
 
oh my... ich hab es :-) ein typo im Dateinamen, statt rsyncd.conf hatte ich es rsync.conf genannt...
Danke trotzdem für die Hilfe!
 
Zurück
Oben