Created
May 30, 2013 11:36
-
-
Save ikekou/5677273 to your computer and use it in GitHub Desktop.
[AWS][Shell] ローカルのやつをAWSにrsyncしてみる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#確認 | |
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