/ mozey.co / blog

rsync to ec2

July 1, 2013

One liner to rsync a folder to an Amazon EC2 instance.

rsync --rsh "ssh -i /path/to/key.pem" -av --exclude '*.xxx' source [email protected]:/path/to/destination