RClone¶
Rclone is a command line program that manages files on cloud storage.
It is a feature-rich alternative to cloud vendors’ web storage interfaces.
Over 40 cloud storage products support rclone, including S3 object stores, and business & consumer file storage services, as well as standard transfer protocols.
Installation¶
You can download the latest version of rclone
from the official site download page.
Configuring RClone¶
There are 2 main ways to configure rclone
:
Run
rclone config
command andrclone
will guide you through an interactive setup process. You can read more about it on their official documentation page.Create or update the configuration file manually – this might be an easier and faster option.
Configuration file example:
1[tebi]
2type = s3
3provider = Other
4access_key_id = <YOUR_KEY>
5secret_access_key = <YOUR_SECRET>
6endpoint = https://s3.tebi.io/
7acl = private
Running RClone¶
See all buckets
rclone lsd tebi:
Make a new bucket
rclone mkdir tebi:BUCKET_NAME
List the contents of a bucket
rclone ls tebi:BUCKET_NAME
Sync /home/local/directory
to the remote BUCKET_NAME
– delete any excess files in the bucket.
rclone sync -i /home/local/directory tebi:BUCKET_NAME
See Also¶
Refer here for more information.