Created
November 6, 2017 19:19
-
-
Save nmagee/0eab9793b1efd7728968924c2ddd61f2 to your computer and use it in GitHub Desktop.
Synchronize a local folder up to an S3 bucket
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
#!/bin/bash | |
bucket='YOUR-BUCKET-NAME' | |
dir='/your/local/directory/' | |
aws s3 sync $dir s3://$bucket | |
# If you want the bucket to match the local directory exactly, including any files | |
# you may delete at a later point, add --delete after sync | |
# | |
# aws s3 sync --delete $dir s3://$bucket | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment