Created
April 1, 2020 17:21
-
-
Save zycon/086a52c5dcaa5cf761a0a30d044c9630 to your computer and use it in GitHub Desktop.
S3 public upload CURL
This file contains hidden or 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
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