Public
Authored by Christian Henke

[object storage] Anonymous up- and download for subpaths of buckets

Prerequisites

The Minio client is needed for all operations:

wget https://dl.minio.io/client/mc/release/linux-amd64/mc
chmod +x mc

Anonymous upload

Receiver:

mc config host add my-host https://example.com:8080 "ACCESS-KEY" "SECRET-KEY"
mc mb my-bucket
mc policy upload my-host/my-bucket/my-subpath/

Sender:

mc config host add my-host https://example.com:8080 "" ""
mc cp -r /folder/to-upload/ my-host/my-bucket/my-subpath/

.

Anonymous download (not working)

Sender:

mc config host add my-host https://example.com:8080 "ACCESS-KEY" "SECRET-KEY"
mc mb my-bucket
mc cp -r /folder/to-share/ my-host/my-bucket/my-share-subpath/
mc policy download my-host/my-bucket/my-share-subpath/

Receiver:

mc config host add my-host https://example.com:8080 "" ""
mc cp -r my-host/my-bucket/my-subpath/ /folder/to-download-to/

Error:

mc: <ERROR> Unable to validate source my-host/my-bucket/my-subpath/
Edited
1 Byte
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment