rsync examples

If you have an interesting example of how you use rsync then please submit it to the rsync-bugs@samba.org for inclusion on this page.

backup to a central backup server with 7 day incremental



backup to a spare disk



mirroring vger CVS tree



automated backup at home



Fancy footwork with remote file lists


One little known feature of rsync is the fact that when run over a
remote shell (such as rsh or ssh) you can give any shell command as
the remote file list. The shell command is expanded by your remote
shell before rsync is called. For example, see if you can work out
what this does:

	rsync -avR remote:'`find /home -name "*.[ch]"`' /tmp/

note that that is backquotes enclosed by quotes (some browsers don't
show that correctly).