Skip to content

Instantly share code, notes, and snippets.

@zycon
Created April 1, 2020 17:21
Show Gist options
  • Save zycon/086a52c5dcaa5cf761a0a30d044c9630 to your computer and use it in GitHub Desktop.
Save zycon/086a52c5dcaa5cf761a0a30d044c9630 to your computer and use it in GitHub Desktop.
S3 public upload CURL
file=backup.tar.gz
curl -X PUT -T "$file" \
-H "Host: <BUCKET_PATH>.amazonaws.com" \
-H "Date: $(date +"%a, %d %b %Y %T %z")" \
-H "Content-Type: application/x-compressed-tar" \
"https://<BUCKET_PATH>.amazonaws.com/$file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment