Skip to content

Instantly share code, notes, and snippets.

@anilbhanushali
Created October 22, 2018 15:24
Show Gist options
  • Select an option

  • Save anilbhanushali/160f7776fedfa615d5c9056b6988c912 to your computer and use it in GitHub Desktop.

Select an option

Save anilbhanushali/160f7776fedfa615d5c9056b6988c912 to your computer and use it in GitHub Desktop.

Revisions

  1. anilbhanushali created this gist Oct 22, 2018.
    7 changes: 7 additions & 0 deletions upload.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    bucket=my-test-bucket
    dateValue=`date -R`
    file=file.tar.bz2
    curl -L -vv -X PUT -T "${file}" \
    -H "Host: ${bucket}.s3.amazonaws.com" \
    -H "Date: ${dateValue}" \
    https://${bucket}.s3.ap-south-1.amazonaws.com/${file}