Blob values must be a path to a file

0

I've seen several posts both in the forums and on hte Internet at large concerning this, but none of the answers seem to be working for me.

I am a aws cli simpleton... I am setting up a process to copy SQL backups into Glacier for long term archival. I have installed the CLI environment on my Windows 2016 server.

The command line seems simple enough:
aws glacier upload-archive --account-id - --vault-name my-sql-archive --body c:\temp\test1.rar

No matter how I structure the --body parameter I get this error:
Error parsing parameter '--body': Blob values must be a path to a file.

I have tried with and without 'file://' pre-pended to file name.
I have tried with and without quotes.
I have moved file to c:\program files\amazon\awscli\awscli and tried referenced it both with fully qualified path and relative path.

Pretty sure I have exhausted every way to make this work.. and read every article google pulled up on this error message. Most of which were never validated a valid answers... and none seemed to work for me.

So... what am I doing wrong here?

Thank you to who every can shed light on my situation.
Mike

已提問 7 年前檢視次數 3141 次
2 個答案
0

The response has been less than exilerating.

I have found a work-around. The Fast Glacier tool has a command line options that worked easily. I would have preferred to use the AWS CLI... but it didn't work and no support... so if someone else finds themselves in that boat... fast Glacier could be your answer as well.

已回答 7 年前
0

Hey there! I tried with this structure path (for Windows) and it works. Example > C:/Users/username/Downloads/file.html

**The entire cmd that I used was: **

aws s3api put-object --bucket mybucketExample --key file.html --body C:/Users/username/Downloads/file.html --content-type text/html

Rgds,

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南