Created
February 11, 2014 07:52
-
-
Save oliverzheng/8930746 to your computer and use it in GitHub Desktop.
Sync directory to S3 bucket
This file contains hidden or 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
#!/bin/bash | |
# E.g. | |
# s3sync.sh --dry-run s3://oliverzheng.com | |
# s3sync.sh s3://oliverzheng.com | |
s3cmd sync --rexclude '.*.git/*' --recursive --delete-removed . $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment