Rclone
Overview
Rclone is a powerful command-line program for managing files on cloud storage. It supports a wide range of cloud providers, including S3-compatible services like Vietnix Object Storage. Rclone is available for macOS and Linux, and is ideal for syncing, copying, and automating file operations.
How to Connect Rclone to Vietnix Object Storage
Follow these steps to configure Rclone with Vietnix Object Storage:
1. Download and Install Rclone
- Visit https://rclone.org/downloads/ to download the latest version for your operating system.
- Follow the installation instructions for your platform.
2. Get Your Vietnix Object Storage Credentials
You will need:
- Access Key
- Secret Key
- Endpoint URL (e.g.
https://s3.vn-hcm-1.vietnix.cloud) - Bucket Name
Find these details in your Vietnix Enterprise Cloud Portal.
3. Configure Rclone Remote
- Open a terminal or command prompt.
- Run the following command to start configuration:
rclone config - Choose n for a new remote and give it a name (e.g.
vietnix-s3). - Select S3 as the storage type.
- Enter your Access Key ID and Secret Access Key.
- For endpoint, enter your Vietnix Object Storage endpoint URL (e.g.
https://s3.vn-hcm-1.vietnix.cloud). - Set region to
vn-hcm-1or leave blank if not required. - Choose V4 for signature version.
- Leave other options as default or adjust as needed.
Example Minimal Configuration
Your rclone.conf might look like:
[vietnix-s3]
type = s3
provider = Other
access_key_id = YOUR_ACCESS_KEY
secret_access_key = YOUR_SECRET_KEY
endpoint = https://s3.vn-hcm-1.vietnix.cloud
region = vn-hcm-1
4. Test the Connection
List buckets:
rclone lsd vietnix-s3:
List objects in a bucket:
rclone ls vietnix-s3:your-bucket-name
5. Common Operations
- Sync local folder to bucket:
rclone sync /path/to/local/folder vietnix-s3:your-bucket-name - Copy files from bucket to local:
rclone copy vietnix-s3:your-bucket-name /path/to/local/folder
Refer to Rclone documentation for advanced usage and automation.
note
- Keep your credentials secure and rotate them regularly.
- For troubleshooting and advanced features, refer to the Rclone Wiki.