Thursday, December 29, 2005

How to - Rsync

Rsync :

1) rsync -P rsync://rsync.server.com/path/to/file file

Only get diffs. Do multiple times for troublesome downloads

2) rsync --bwlimit=1000 fromfile tofile

Locally copy with rate limit. It's like nice for I/O.

3) rsync -az -e ssh --delete ~/public_html/ remote.com:'~/public_html'

Mirror web site (using compression and encryption)

4) rsync -auz -e ssh remote:/dir/ . && rsync -auz -e ssh . remote:/dir/

Synchronize current directory with remote one



No comments: