rsync: A Backup Strategy for Modern Times - Page 4

 By Carla Schroder
Page 4 of 4   |  Back to Page 1
Print Article

Running an rsync Server

rsync can also be run as a daemon, which can be invoked from the command line --daemon. rsync listens on TCP port 873. Setting up a dedicated rsync server lets any number of machines and users connect for mirroring, backups, file retrieval, whatever they need. /etc/rsyncd.conf contains the server's environment and runtime variables, including user and host access control lists.

Backup Scripts

The best and safest way to use rsync is to run it from scripts. Refine your command strings and directory options, then record them for posterity in scripts. Put them in crontabs so you don't have to remember to run them manually. Using (and reusing) scripts greatly reduces the chances of errors. See the rsync web site for examples of backup scripts. The site gives examples for using an ordinary 7-day rotation to a central backup server, mirroring a CVS tree, and backing up to a spare disk.

As always, the more you know about scripting and regular expressions, the better you'll be able to make things work. If you ever get tired of my nagging about scripting and want a nice tutorial instead, drop me a line and I will wheedle my excellent editor into letting me write one.


rsync home page
rsync on Windows
A Tutorial On Using rsync
info rsync
info rsyncd.conf(5)

» See All Articles by Columnist Carla Shroder

This article was originally published on Jan 23, 2004
Get the Latest Scoop with Networking Update Newsletter