Ich habe versucht mich hier nach zu richten: http://wiki.ubuntuusers.de/rsync
Ich möchte rsync als deamon laufen lassen. Dazu habe ich eine /etc/rsyncd.conf angelegt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | use chroot = true hosts allow = 192.168.178.24 transfer logging = true log file = /var/log/rsyncd.log log format = %h %o %f %l %b [platte_1] comment = Public Share path = /media/platte_1 read only = no list = yes uid = christian gid = christian |
und eine /etc/xinetd.d/rsync
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | use chroot = true hosts allow = 192.168.178.24 transfer logging = true log file = /var/log/rsyncd.log log format = %h %o %f %l %b [platte_1] comment = Public Share path = /media/platte_1 read only = no list = yes uid = christian gid = christian |
und die /etc/default/rsync
1 2 3 | RSYNC_ENABLE=inetd RSYNC_NICE='10' RSYNC_IONICE='-c3' |
Danach starte ich den rsync mit
1 | root@server-02:/media# rsync -avzP --progress --stats rsync://christian@192.168.178.23:/platte_1/ /media/bay1/ |
und erhalte den Fehler
1 2 | @ERROR: chroot failed rsync error: error starting client-server protocol (code 5) at main.c(1534) [Receiver=3.0.9] |
Ich weiß leider nicht weiter was ich falsch gemacht habe. Kann jemand helfen?