Skip to content

Instantly share code, notes, and snippets.

View braxtone's full-sized avatar

Braxton braxtone

View GitHub Profile
@braxtone
braxtone / gzsync.sh
Last active August 29, 2015 14:17 — forked from woodb/gzsync.sh
Bash script to compress and upload the current directory to an S3 bucket with the ability to exclude files with certain extensions.
#!/bin/bash
BUCKET=$1
TMP_DIR=`mktemp -d -t gzsync`
# Get a list of comma-delimited excluded filetypes
OIFS=$IFS;
IFS=",";
EXCLUDED_FILETYPES=($2)
IFS=$OIFS;