
Rclone is a command-line program to manage files on cloud storage, with cloud equivalents to Unix commands like rsync, cp, mv, mount, ls, and more. This guide describes how to configure rclone for Vultr Object Storage.
testbucket.The rclone commands are cross-platform. This guide shows examples for macOS in zsh, which are compatible with Linux in bash. Windows users will make minor command adjustments for PowerShell or CMD.
Locate your rclone configuration file location. This example path below comes from a macOS installation.
Create a configuration file.
Paste the following to the file. Replace access_key_id and secret_access_key with your values.
The acl = line sets the default file permission.
In general, use private unless you share files via URL. Read more about s3 permissions in the rclone documentation.
Create a test folder and change to it.
Assuming the tmp folder is empty, create three test files.
Copy one file to the bucket.
List the bucket. Notice that test1.txt exists in the bucket and is 13 bytes.
Delete test1.txt from the local system.
List the bucket. Notice that test1.txt still exists.
Sync the entire folder to the bucket.
List the bucket. Notice that rclone synced the bucket with the local system by removing test1.txt and adding the other two files.
In addition to cloning local files to object Storage, rclone can work with two different object storage buckets. Assuming you had two buckets in the vultr-ewr1 object store shown previously, you'd do this:
If you have multiple stores with different keys, declare them in rclone.conf with different labels. You can also use different permissions in the acl= line of each. Here are two different object stores in the New Jersey location with different permissions.
To sync bucket1-private with bucket2-public, use rclone like this:
You can also sync buckets between locations. For example, here is a sample configuration with New Jersey (ewr1) and Amsterdam (ams1).
To sync files between the locations, you'd use rclone like this:
You'll find a full list of our locations and hostnames in our Object Storage documentation.
If you encounter HTTP error codes 429, 503, or 504, you may have hit the Vultr Object Storage rate limit. If you encounter this issue, we recommend the following command line options.
--tpslimit 100--transfers 1Please refer to the rclone documentation for more information.
0 Comments
Be the first to comment and share your perspective with the community.