Previous Topic

Next Topic

Book Contents

Book Index

Examples

A command line to mirror FreeBSD might look like:

% rsync -avz --delete ftp4.de.FreeBSD.org::FreeBSD/ /pub/FreeBSD/

The Apache HTTP Server supports only rsync for updating mirrors.

rsync -avz --delete --safe-links rsync.apache.org::apache-dist /path/to/mirror

The preferred (and simplest) way to mirror the PuTTY website to the current directory is to use rsync.

rsync -auH rsync://rsync.chiark.greenend.org.uk/ftp/users/sgtatham/putty-website- mirror/ .A way to mimic the capabilities of Time Machine (Mac OS).
date=`date "+%Y-%m-%dT%H:%M:%S"`
rsync -aP --link-dest=$HOME/Backups/current /path/to/important_files
$HOME/Backups/back-$date
ln -s back-$date $HOME/Backups/current-$date
mv -f $HOME/Backups/current-$date $HOME/Backups/current

See Also

What is rsync?

Uses

Algorithm

Practical applications