Skip to content

Instantly share code, notes, and snippets.

@oliverzheng
Created February 11, 2014 07:52
Show Gist options
  • Save oliverzheng/8930746 to your computer and use it in GitHub Desktop.
Save oliverzheng/8930746 to your computer and use it in GitHub Desktop.
Sync directory to S3 bucket
#!/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