Articles sur : Stockage objet

Rclone : intéragir avec votre espace de stockage objet Leviia (compatible S3)

Rclone est un puissant outil de gestion de données. Il est disponible sur la majorité des systèmes, tout en étant un outil mature et fiable. Il permet entre autre de réaliser des synchronisations, des transferts et des montages en système de fichiers.

C'est un outil communément utilisé dans des scripts ou simplement lorsque l'on souhaite avoir une seule application pour gérer plusieurs clouds.

Pour installer Rclone sur votre système, rendez-vous sur cette page https://rclone.org/downloads/.

Une fois l'installation effectuée, ouvrez Rclone en ligne de commande.

Conseil pour l'utilisation de Rclone sur Windows : vous pouvez ouvrir une invite de commande et faire glisser le fichier "rclone.exe" précédemment téléchargé dans la fenêtre de l'invite de commande. Le chemin d'emplacement du fichier devrait apparaître, mettez un espace puis saisissez "config" et faites entrée.

Procédez ensuite à la configuration de la façon suivante.

No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n


Enter name for new remote.
name> LeviiaS3


Nous nommons cette connexion "LeviiaS3" mais ce n'est qu'un exemple.

Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
 1 / 1Fichier
   \ (fichier)
 2 / Akamai NetStorage
   \ (netstorage)
 3 / Alias for an existing remote
   \ (alias)
 4 / Amazon Drive
   \ (amazon cloud drive)
 5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, IONOS Cloud, Liara, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Tencent COS, Qiniu and Wasabi
   \ (s3)
Storage> 5


Option provider.
Choose your S3 provider.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
 1 / Amazon Web Services (AWS) S3
   \ (AWS)
 2 / Alibaba Cloud Object Storage System (OSS) formerly Aliyun
   \ (Alibaba)
 3 / Ceph Object Storage
   \ (Ceph)
 4 / China Mobile Ecloud Elastic Object Storage (EOS)
   \ (ChinaMobile)
 5 / Cloudflare R2 Storage
   \ (Cloudflare)
 6 / Arvan Cloud Object Storage (AOS)
   \ (ArvanCloud)
 7 / DigitalOcean Spaces
   \ (DigitalOcean)
 8 / Dreamhost DreamObjects
   \ (Dreamhost)
 9 / Huawei Object Storage Service
   \ (HuaweiOBS)
10 / IBM COS S3
   \ (IBMCOS)
11 / IDrive e2
   \ (IDrive)
12 / IONOS Cloud
   \ (IONOS)
13 / Seagate Lyve Cloud
   \ (LyveCloud)
14 / Liara Object Storage
   \ (Liara)
15 / Minio Object Storage
   \ (Minio)
16 / Netease Object Storage (NOS)
   \ (Netease)
17 / RackCorp Object Storage
   \ (RackCorp)
18 / Scaleway Object Storage
   \ (Scaleway)
19 / SeaweedFS S3
   \ (SeaweedFS)
20 / StackPath Object Storage
   \ (StackPath)
21 / Storj (S3 Compatible Gateway)
   \ (Storj)
22 / Tencent Cloud Object Storage (COS)
   \ (TencentCOS)
23 / Wasabi Object Storage
   \ (Wasabi)
24 / Qiniu Object Storage (Kodo)
   \ (Qiniu)
25 / Any other S3 compatible provider
   \ (Other)
provider> 25


Option env_auth.
Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
Only applies if access_key_id and secret_access_key is blank.
Choose a number from below, or type in your own boolean value (true or false).
Press Enter for the default (false).
 1 / Enter AWS credentials in the next step.
   \ (false)
 2 / Get AWS credentials from the environment (env vars or IAM).
   \ (true)
env_auth> 1


Option access_key_id.
AWS Access Key ID.
Leave blank for anonymous access or runtime credentials.
Enter a value. Press Enter to leave empty.
access_key_id> [saisissez votre clé d'accès]


Vous trouverez votre clé d'accès et votre clé secrète sur votre dashboard

Option secret_access_key.
AWS Secret Access Key (password).
Leave blank for anonymous access or runtime credentials.
Enter a value. Press Enter to leave empty.
secret_access_key> [saisissez votre clé secrète]



Option region.
Region to connect to.
Leave blank if you are using an S3 clone and you don't have a region.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
   / Use this if unsure.
 1 | Will use v4 signatures and an empty region.
   \ ()
   / Use this only if v4 signatures don't work.
 2 | E.g. pre Jewel/v10 CEPH.
   \ (other-v2-signature)
region> 1


Option endpoint.
Endpoint for S3 API.
Required when using an S3 clone.
Enter a value. Press Enter to leave empty.
endpoint> s3.leviia.com


Option location_constraint.
Location constraint - must be set to match the Region.
Leave blank if not sure. Used when creating buckets only.
Enter a value. Press Enter to leave empty.
location_constraint>


Ne rien mettre, faites simplement entrée.

Option acl.
Canned ACL used when creating buckets and storing or copying objects.
This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
Note that this ACL is applied when server-side copying objects as S3
doesn't copy the ACL from the source but rather writes a fresh one.
If the acl is an empty string then no X-Amz-Acl: header is added and
the default (private) will be used.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
   / Owner gets FULL_CONTROL.
 1 | No one else has access rights (default).
   \ (private)
   / Owner gets FULL_CONTROL.
 2 | The AllUsers group gets READ access.
   \ (public-read)
   / Owner gets FULL_CONTROL.
 3 | The AllUsers group gets READ and WRITE access.
   | Granting this on a bucket is generally not recommended.
   \ (public-read-write)
   / Owner gets FULL_CONTROL.
 4 | The AuthenticatedUsers group gets READ access.
   \ (authenticated-read)
   / Object owner gets FULL_CONTROL.
 5 | Bucket owner gets READ access.
   | If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
   \ (bucket-owner-read)
   / Both the object owner and the bucket owner get FULL_CONTROL over the object.
 6 | If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
   \ (bucket-owner-full-control)
acl> 1


Edit advanced config?
y) Yes
n) No (default)
y/n> n


Configuration complete.
Options:
- type: s3
- provider: Other
- access_key_id: [votre clé d'accès]
- secret_access_key: [votre clé secrète]
- endpoint: s3.leviia.com
- acl: private
Keep this "LeviiaS3" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y


Current remotes:

Name                 Type
====                 ====
LeviiaS3             s3

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q


La connexion étant maintenant établie, nous essayons d'appliquer la commande "ls" sur rclone comme visible ci-dessous :

ls LeviiaS3:




La commande nous permet de voir le contenu du stockage objet sur lequel nous sommes connectés, ici, un bucket nommé "exempledebucket" avait été précédemment créé.


Vous pouvez retrouver l'ensemble de la documentation Rclone tel que la synchronisation, la copie, le montage etc, sur ces pages : https://rclone.org/docs/ et https://rclone.org/s3/

Pour utiliser Rclone en interface graphique, tapez rclone rcd --rc-web-gui.

Mis à jour le : 09/06/2023

Cet article a-t-il répondu à vos questions ?

Partagez vos commentaires

Annuler

Merci !