Skip to content

Instantly share code, notes, and snippets.

@ikekou
Created May 30, 2013 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikekou/5677273 to your computer and use it in GitHub Desktop.
Save ikekou/5677273 to your computer and use it in GitHub Desktop.
[AWS][Shell] ローカルのやつをAWSにrsyncしてみる
#確認
rsync --dry-run -av --delete --exclude ".DS_Store" --exclude "tmp/*" -r -e "ssh -i rsynctestkey.pem" ~/Desktop/rsync_test/foo/ ec2-user@ec2-XX-XX-XX-XX.ap-northeast-1.compute.amazonaws.com:/var/www/bar/
#実行
rsync -av --delete --exclude ".DS_Store" --exclude "tmp/*" -r -e "ssh -i rsynctestkey.pem" ~/Desktop/rsync_test/foo/ ec2-user@ec2-XX-XX-XX-XX.ap-northeast-1.compute.amazonaws.com:/var/www/bar/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment