HowtoCeph: ajouter minio client

This commit is contained in:
Alexis Ben Miloud--Josselin 2022-09-02 11:52:41 +02:00
parent 3ebd801f20
commit 62a5f9afb9

View file

@ -810,6 +810,35 @@ $ exit
# radosgw-admin user create --uid="testuser" --display-name="First User"
~~~
## Clients
### MinIO Client
Il sagit un outil en ligne de commande pour interagir avec du stockage compatible Amazon S3. Le code est accessible sur [GitHub](https://github.com/minio/mc).
On défini un _alias_, qui est un nom pour le stockage S3.
```
mc alias set <alias> http://<hote> <access_key> <secret_key>
```
> Si on peut aussi préciser un port :
> ```
> mc alias set <alias> http://<hote>:<port> <access_key> <secret_key>
> ```
Pour lister les objets dans un _bucket_ :
```
mc ls <alias>/<bucket>
```
Pour _upload_ un fichier :
```
mc mv mon_fichier <alias>/<bucket>/
```
# Troubleshooting