If you are looking for tutorials, tips and guides covering not only Linux but also BSD and Solaris visit the site. It's updated on a daily basis so I'm sure you'll find it to be very useful.
The goal of this tutorial is to detail the needed steps to setup a general purpose rsync server on Gentoo. Note: this guide doesn't focus on setting up your own Gentoo local rsync mirror, for that please consult Gentoo's official documentation on the matter, namely Gentoo Linux rsync Mirrors Policy and Guide.
rsync is an open source utility that provides fast incremental file transfer, available in multiple platforms such as Linux, *BSD and Solaris.
Let's begin by becoming the superuser, synchronize the portage tree and install rsync:
- $ su
- # eix-sync
- # emerge --ask --tree --verbose net-misc/rsync
- # rc-update add rsync default
- # vim /etc/rsyncd.conf
motd file = /usr/local/etc/rsync.motd
log file = /var/log/rsyncd.log
pid file = /var/log/rsyncd.pid
lock file = /var/log/rsyncd.lock
transfer logging = true
use chroot = yes
[backup]It should be noted that a list of modules is returned from a rsync server when the server is queried:
path = /home/username
read only = yes
list = yes
comment = Example of a rsync backup module
hosts allow = 192.168.1.0/24
- $ rsync example.no-ip.org::
backup Example of a rsync backup moduleTo start the rsync server immediately:
- $ su
- # /etc/init.d/rsyncd start
- $ rsync -av example.no-ip.org::backup/ /destination/
Take a look at the utility's website for ideas on how to use rsync in useful ways.
Additional sources of information: