ACS + Rclone Quickstart Guide
Learn how to upload and download files to ACS Object Storage using Rclone.
Overview
This guide shows you how to upload and download files to ACS Object Storage using Rclone.
Rclone is an open-source command-line tool that works with over 100 storage providers, including any S3-compatible system like ACS. With Rclone, you can quickly transfer large datasets, checkpoints, and logs, sync local directories with ACS buckets, and automate backups or workflows without extra SDKs.
Setup (One-Time)
1. Install Rclone
2. Configure ACS Connection
Replace <YOUR-ACCESS-KEY-ID> and <YOUR-SECRET-ACCESS-KEY> with your ACS credentials.
3. Test Connection
If successful, you'll see your ACS buckets.
Uploading Files
Transfer files from your local machine to ACS buckets. Use copy to upload while keeping the original files intact.
Single File Upload
Upload a single file to your ACS bucket with progress tracking and optimized transfer settings.
Directory Upload
Upload an entire directory and its contents recursively with higher concurrency for faster transfers.
Downloading Files
Retrieve files from ACS buckets to your local machine. Downloads preserve file attributes and can resume interrupted transfers.
Single File Download
Download a specific file from your ACS bucket to a local directory.
Directory Download
Download an entire directory structure from ACS with all subdirectories and files.
Listing Files and Directories
Explore and inspect your ACS storage contents. List commands help you navigate buckets and understand storage structure.
List Buckets
Show all available buckets in your ACS account.
List Files in a Bucket
Display files and directories within a specific bucket using different detail levels.
List Files with Filters
Find specific files using patterns, age, or size criteria to narrow down large datasets.
Deleting Files and Directories
Remove unwanted files and directories from your ACS storage. Use caution with delete operations as they are permanent.
Delete Single File
Remove a specific file from your ACS bucket permanently.
Delete Directory
Remove directories and their contents. Use 'delete' to keep the directory or 'purge' to remove everything.
Delete with Filters
Selectively delete files based on patterns, age, or other criteria to clean up storage efficiently.
Safe Delete
Preview what will be deleted before executing. Always use --dry-run first to avoid accidental data loss.
Syncing Local and Remote Directories
Keep directories synchronized between your local machine and ACS. Sync operations can be one-way or bidirectional.
One-Way Sync (Local → ACS)
Make ACS match your local directory exactly. Files not in the source will be deleted from ACS.
One-Way Sync (ACS → Local)
Download and sync from ACS to your local directory. Local files will be updated to match ACS exactly.
Two-Way Sync
Synchronize changes in both directions. Files added, modified, or deleted on either side are reflected on the other, keeping both locations perfectly in sync.
Sync with Exclusions
Synchronize directories while excluding specific file types or directories like temporary files and caches.
Transferring Data from Another Object Store to ACS
Migrate data directly between different cloud storage providers without downloading to local storage first.
Setup Multiple Storage Endpoints
Configure multiple storage providers in your Rclone config to enable cross-cloud transfers.
Configure both your source storage and ACS as separate remotes in rclone to transfer data between them.
Transfer Data Between Storage Systems
Copy data directly from one cloud provider to ACS without intermediate local storage.
Performance Optimization
Tune Rclone settings for maximum transfer speed based on your file sizes and network conditions.
For Large Files (>10GB)
Optimize for large file transfers with larger buffers and multi-threaded streams for maximum throughput.
For Many Small Files
Optimize for many small files with higher concurrency and more checker threads to reduce overhead.
Max Performance
Aggressive settings for maximum speed when network and system resources allow. Use with caution on constrained systems.