Use Rclone

Learn how to use Rclone with OORT Storage.

What is Rclone?

Rclone is a command line program used to backup and sync files and directories to cloud storage platforms. Rclone is certified for use with OORT Storage. Over 40 cloud storage products supported, for learn more on Rclonearrow-up-right.

Prerequisites

Configuring Rclone to connect to OORT Storage

To use Rclone, open a terminal window and navigate to the directory where you saved the executable.

  1. Run rclone config to setup and select n for a new remote.

rclone config
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n
  1. Enter a name for the new remote configuration, e.g. dss-remote.

  1. A long list of supported storage types will prompt. Enter s3 and hit Enter.

  1. A further list of S3 storage providers will prompt. Enter Other and hit Enter.

  1. A choice will be given on how you will enter credentials. Enter false and hit Enter.

  1. Enter your access key and secret key.

  1. Press Enter to leave empty.

  1. Specify the endpoint for OORT Storage.

circle-info

The OORT Storage S3-Compatible API endpoint URL is:

Standard:https://s3-standard.oortech.comarrow-up-right

Archive:https://s3-archive.oortech.comarrow-up-right

  1. Press Enter to skip the location constraint as there is no location constraint.

  1. Enter 1 to choose default ACL (private).

  1. You will be asked if you want to edit the advanced config. Enter n to save the default advanced configuration.

  1. A summary of the remote configuration will prompt. Type y and hit Enter to confirm.

  1. Now you should see one remote configuration available. Enter q and hit Enter to quit the configuration wizard.

Create a Bucket

Use the mkdir command to create new bucket, e.g. mybucket.

List All Buckets

Use the lsf command to list all buckets.

Delete a Bucket

Use the rmdir command to delete an empty bucket.

Use the purge command to delete a non-empty bucket with all its content.

Upload Objects

Copy the source to the destination. Does not transfer files that are identical on source and destination, testing by size and modification time or MD5SUM.

Use the copy command to upload an object.

The copy can be done also from a remote path to Oort DSS.

Sync or Migrate Data

Sync the source to the destination, changing the destination only. Doesn't transfer files that are identical on source and destination, testing by size and modification time or MD5SUM. Destination is updated to match source, including deleting files if necessary.

The sync can be done also from Oort DSS to the local file system.

Or even between another cloud storage and Oort DSS.

List Objects

Use the ls command to list recursively all objects in a bucket.

Use the lsf command to list non-recursively all objects in a bucket or a folder.

Download Objects

This is the same as copying, but the source path is something in the remote or in a bucket, while the destination path is on your local storage.

Use a folder in the remote path to download all its objects.

Delete Objects

Use the delete command to delete a single object or folder.

Use the delete command to delete all object in a folder.

Last updated