In this guide, you will learn how to use Rclone to connect to your Storagecenter buckets. Rclone is a powerful command-line tool for managing files in cloud storage services.
Install Rclone
Ensure that Rclone is installed on your system. If not, download and install it from the official website:
Rclone Installation
Verify the installation with:
rclone version
Access Credentials
Please find AccessKeys and SecretKeys in Our Customer Portal.
Start Rclone Configuration
Run the following command to start configuring Rclone:
rclone config
Create a New Remote
Follow the prompts to create a new remote storage configuration:
s3
(Amazon S3 Compliant Storage Provider).Other
(since https://a1.storagecenter.ch
is a custom endpoint).https://a1.storagecenter.ch
.default
). This is required but may not be used by the custom endpoint.Enter
to accept the default values for other options.Verify the Configuration
After completing the setup, Rclone will display the configuration details. Confirm by typing y
.
Once configured, you can use Rclone to interact with your S3-compatible storage.
List all buckets in your storage:
rclone lsd remote:
Replace remote:
with the name you gave your remote during configuration.
Create a new bucket:
rclone mkdir remote:my-bucket-name
Replace my-bucket-name
with a unique name for your bucket.
Upload a file to a bucket:
rclone copy /path/to/local/file.txt remote:my-bucket-name/path/to/destination/
Download a file from a bucket:
rclone copy remote:my-bucket-name/path/to/file.txt /path/to/local/destination/
List all files in a bucket:
rclone ls remote:my-bucket-name
Delete a file from a bucket:
rclone delete remote:my-bucket-name/path/to/file.txt
Sync files from a local directory to a bucket:
rclone sync /path/to/local/directory remote:my-bucket-name/path/to/destination/
If you want to use multiple configurations, you can create different remotes in Rclone. Each remote can have its own settings.
Enable debug mode for detailed logging:
rclone --verbose copy /path/to/local/file.txt remote:my-bucket-name/path/to/destination/
You can mount a bucket as a local filesystem using rclone mount
:
rclone mount remote:my-bucket-name /path/to/mount/point/
This allows you to interact with the bucket as if it were a local directory.
Your Rclone configuration is stored in ~/.config/rclone/rclone.conf
. Here’s an example configuration for https://a1.storagecenter.ch
:
[my-remote]
type = s3
provider = Other
access_key_id = YOUR_ACCESS_KEY
secret_access_key = YOUR_SECRET_KEY
endpoint = https://a1.storagecenter.ch
region = default
With this guide, you can use Rclone to connect to a custom S3-compatible endpoint like https://a1.storagecenter.ch
. You can create buckets, upload and download files, and perform other storage operations.
For more information, consult the official Rclone documentation:
Rclone Documentation