Setting rsync server in Debian Squeeze

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 !

"Bekatul Port" Personal Enterprise Number (PEN) registered @ IANA OID

ASN.1 Notation: {iso(1) identified-organization(3) dod(6) internet(1) private(4) enterprise(1) 30347}

Dot Notation: 1.3.6.1.4.1.1.30347

IRI Notation: oid:/ISO/Identified-Organization/6/1/4/1/30347