[ubuntu] rsync commands to sync localhost with EC2 instance

view story

http://ubuntuforums.org – I'm setting up a batch of rsync scripts to sync my localhost /var/www to the equivalent server in an EC2 instance and I need to understand the finer points of the rsync syntax. I've first read man rsync As I understand rsync .. this following command copies "/var/www/" (with trailing slash) into destination EC2 (ubuntu) instance Code: rsync -avz /var/www/ -e  "ssh -i ~/.ec2/myprivatekey.pem" ubuntu@ec2-xx-xxx-xxx-xx.eu-west-1.compute.amazonaws.com:/var/www Is it correct to leave off the trailing slash on destination? as in man rsync ... rsync -av /src/foo/ / (Hardware)