Charles Pittman wrote:
The following is a question I intended to post earlier, but decided to lookup my own answer (and happened to find it in the manpage): I have ssh access to my webhost. I am looking for an easy way to keep ~/public_html updated on the remote site using ssh.
For those interested, here is the command:
rsync -v -c -r -u -P -e"ssh -l<user>" --delete-excluded --stats /local/dir/ <remote_address>:/remote/dir/
See man rsync(1) for information about the flags used.
Hopefully this helps someone out there.
Its a really cool trick, I actually learned about it from Rob Flickenger's Linux Server Hacks. It's Hack#38 Using rsync over ssh http://hacks.oreilly.com/pub/h/38
-- [email protected] mailing list

