by danang.wijanarko@gmail.com
What is this ?
It is only a note when you're getting older and older, your hair just more soft and white, your mind slowly go blank. There, you might need some note to do some simple stuff because you don't have memory left to remember old puff things. "RSYNC".
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 !