Skip to content

Instantly share code, notes, and snippets.

@albertstill
Created January 21, 2016 09:29
Show Gist options
  • Save albertstill/574494ae7a75bfeae301 to your computer and use it in GitHub Desktop.
Save albertstill/574494ae7a75bfeae301 to your computer and use it in GitHub Desktop.
Script that pushes a staging buckets data to a production bucket
# delete flag means files that exist in the prod bucket but not in the staging
# bucket are deleted during sync
aws s3 sync s3://staging.mybucket.com s3://mybucket.com --delete --region eu-west-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment