Obviously, you need a "DEBIAN" box like what i have.
Server
root@nermus:~# apt-get install rsync
root@nermus:~# cp /usr/share/doc/rsync/examples/rsyncd.conf /etc/
root@nermus:~# vi /etc/rsyncd.conf
...
# GLOBAL OPTIONS
pid file=/var/run/rsyncd.pid
[DEBIAN]
comment = DEBIAN REP
path = /home/jail/data/disk-160-gb/1.OS/DEBIAN
use chroot = yes
lock file = /var/lock/rsyncd
read only = yes
list = yes
uid = nobody
gid = nogroup
strict modes = yes
ignore errors = no
ignore nonreadable = yes
transfer logging = no
timeout = 600
refuse options = checksum dry-run
dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz
...
root@nermus:~# vi /etc/inetd.conf
...
rsync stream tcp nowait root /usr/bin/rsync rsyncd --daemon
...
root@nermus:~# /etc/init.d/openbsd-inetd restart
Client
root@d1x:~# apt-get install rsync
root@d1x:~# rsync -v nermus::
DEBIAN DEBIAN REP
root@d1x:~# rsync -av nermus::DEBIAN /mirror/
Done !
by (https://www.bekatul.info/)
0 Response to "Setting rsync server in Debian Squeeze"
Posting Komentar