For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/es/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/es/llms-full.txt, and this page is available as Markdown at https://docs.ovhcloud.com/es/guides/storage-and-backup/object-storage/s3-rclone.md.

Object Storage - Use Object Storage with Rclone

Ver como Markdown

Learn how to set up Rclone to synchronize your files to and from Object Storage.

Objective

Rclone is a backup tool that can sync to and from various storage backends, and can be used on Windows, macOS and Linux. A detailed documentation is also available on the official Rclone website: Rclone Official Documentation.

This guide explains how to set up Rclone to synchronize your files to and from Object Storage.

Warning

OVHcloud provides services which you are responsible for with regard to their configuration and management. You are therefore responsible for ensuring they function correctly.

This guide is designed to assist you in common tasks as much as possible. If you encounter any difficulties performing these actions, please contact a specialist service provider and/or discuss the issue with our community of users. OVHcloud cannot provide you with technical support in this regard.

Requirements

  • A bucket
  • A user with the required access rights on the bucket
  • Your Object Storage credentials (access_key and secret_access_key)

See our Getting started with Object Storage guide.

Info

To identify the endpoint for your storage class, refer to this guide: Object Storage - Endpoints and Object Storage geoavailability.

Instructions

To configure Rclone, edit or create the ~/.config/rclone/rclone.conf file and add this:

[<remote_name>]
type = s3
provider = Other
env_auth = false
access_key_id = <access_key>
secret_access_key = <secret_key>
endpoint = https://s3.<region_in_lowercase>.io.cloud.ovh.net
acl = private
region = <region_in_lowercase>
location_constraint = <region_in_lowercase>

Rclone is now ready for use.

Command examples

List all buckets:

rclone lsd <remote_name>:

Create a new bucket:

rclone mkdir <remote_name>:<bucket_name>

List the contents of a bucket:

rclone ls <remote_name>:<bucket_name>

Synchronise a local directory to a bucket:

rclone sync <source_directory> <remote_name>:<bucket_name>

Copy a file into a bucket:

rclone copy <file_path> <remote_name>:<bucket_name>

Download a file from a bucket:

rclone copy <remote_name>:<bucket_name>/<object_key> <destination_file_path>

You will find on the official Rclone website a detailed documentation of the possible actions: Official Rclone documentation.

Go further

For training or technical assistance implementing our solutions, contact your sales representative or visit our Professional Services page to request a quote and have your project analysed by our experts.

Join our community of users.

¿Le ha resultado útil esta página?