























The MinIO Client (mc) is a fast, feature-rich CLI tool for S3-compatible object storage. It supports Ceph RGW natively by registering it as a custom alias. mc provides additional capabilities like real-time event watching, mirroring, and admin operations compared to the AWS CLI.
# Linux
curl https://dl.min.io/client/mc/release/linux-amd64/mc \
-o /usr/local/bin/mc
chmod +x /usr/local/bin/mc
# macOS
brew install minio/stable/mcmc alias set ceph \
http://rook-ceph-rgw-my-store.rook-ceph:80 \
myaccesskey \
mysecretkey \
--api S3v4Verify the connection:
mc ls cephCreate a bucket:
mc mb ceph/my-bucketList buckets:
mc ls cephRemove an empty bucket:
mc rb ceph/my-bucketRemove a bucket and all its contents:
mc rb ceph/my-bucket --forceUpload a file:
mc cp /tmp/report.pdf ceph/my-bucket/reports/report.pdfDownload a file:
mc cp ceph/my-bucket/reports/report.pdf /tmp/Upload a directory recursively:
mc cp --recursive /var/data/ ceph/my-bucket/data/Continuously mirror a local directory to Ceph:
mc mirror /var/backups/ ceph/my-bucket/backups/ \
--watch \
--removeWatch a bucket for object creation events in real time:
mc watch ceph/my-bucketSet a public read policy:
mc anonymous set download ceph/my-bucket/public/Get current policy:
mc anonymous get ceph/my-bucketmc provides a powerful alternative to the AWS CLI for managing Ceph RGW object storage, with extras like live mirroring and bucket event watching. After registering Ceph as an alias, all standard S3 operations work immediately with a clean, intuitive command syntax.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。