Rsync project code to an EC2 instance

rsync -r --delete --progress -e "ssh -i /FullPathTo/yourEc2KeyPair.pem" /Users/ShawnShi/Sites/projectName/ ec2-user@ec2-xx-xxx-xx-xxx.compute-1.amazonaws.com:/var/www/html/

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shawn Shi

Shawn Shi

570 Followers

Senior Software Engineer at Microsoft. Ex-Machine Learning Engineer. When I am not building applications, I am playing with my kids or outside rock climbing!