Tuesday, August 5, 2008

rsync in 10 seconds

It's like cp and the following produce the same results:
cp -a /tmp .
rsync -a /tmp .
Note the following benefits:
  • mirrors a directory along with meta data (like cp -a)
  • uses diffs to save time when run again
  • can cross servers over SSH
Here's the syntax for that SSH option:
rsync -a -e 'ssh' user@host:/tmp .
Which copies /tmp on a remote host over SSH like scp.

Read Jeremy Mates's tutorial next.

No comments: