Skip to content

Instantly share code, notes, and snippets.

@benwiz
Created December 23, 2018 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benwiz/1848045fe360dc2f264e5c9b991e1bbf to your computer and use it in GitHub Desktop.
Save benwiz/1848045fe360dc2f264e5c9b991e1bbf to your computer and use it in GitHub Desktop.
Sync a folder on my computer with an S3 folder in my S3 archive bucket
#!/bin/bash
# TODO: Should take `DEST_DIR` as a required input
aws s3 sync . s3://benwiz-archive/$DEST_DIR --profile personal --exclude "*node_modules/*" --exclude "*venv/*" --exclude "*.DS_Store"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment