Ben Godfrey

Mmm, rsync

Sync a folder to a server to which you have SSH access (and which has rsync installed). The options include compressing, checksumming, being verbose and archving, which does a bunch of stuff. Also, I don’t want to put Vim’s swapfiles up to the server, so by excluding them here I can run this command while editing. Excluding .DS_Store is a must for OS X users. Pesky .DS_Store files.

rsync -cavz --exclude=\*.swp --exclude=.DS_Store --rsh=/usr/bin/ssh folder server.com:dest

Comments

mat's avatar

mat

rSync rocks ass. The -Pt switchs are very handy if you're going to be syncing more than one time, as it will then only transfer the changed parts of files. I regularly see virtual transfer speeds of 1.5Mb/s with rsync over ssh.. http://ninj4.org/blog/entry?1044403922
Cancel

Comments are closed for this post.

Add a new comment

Comments are closed for this post.