Linux.com

rsync

Posted by: Anonymous Coward on February 25, 2004 02:03 AM
rsync can do this in a single line AND it supports SSH for secure off-site backups. It supports incremental backups as well.

Two lines of rsync will get you two-way syncronization with a remote directory.

Put these same two lines in a cronjob on multiple machines and you have a very nice system for backups and syncronization of files between your desktop and laptop! It all happens in the background. I love it!

# pull down changed files
rsync -rptgouz -e ssh user@hostname.com:Documents<nobr> <wbr></nobr>/home/user

# push up changed files
rsync -rptgouz -e ssh<nobr> <wbr></nobr>/home/user/Documents user@hostname.com:

(Note: you will have to create the apropriate identities for SSH to have it work without prompting for a password)

#

Return to Linux backup for the rest of us