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
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