FastNetMon

Monday, 8 June 2020

s3cmd and Google Cloud Storage

You can use s3cmd to access / upload data to Google Cloud Storage using following syntax:
s3cmd --disable-multipart  --host=storage.googleapis.com --host-bucket="%(bucket).storage.googleapis.com"  --access_key XXX --secret_key XXX filenaname put fastnetmon-1.1.6-1.el8.x86_64.rpm put s3://bucket_name/file_path
disable-multipart flag is important! It will return following error without it:
 ERROR: S3 error: 400 (InvalidArgument): Invalid argument.

No comments :

Post a Comment

Note: only a member of this blog may post a comment.