Skip to main content

Using Object Storage

Updated at: 2025-12-05 11:03:25

Object storage is one of the most commonly used storage paradigms in cloud computing. It helps organizations and individuals manage and distribute large volumes of data efficiently. In Virtual Kubernetes Services (VKS) workflows, object storage is frequently used for staging, persistence, and transfer. We recommend using rclone to manage your object storage resources.

What is Rclone

Rclone is a powerful command-line program for managing cloud storage. It can synchronize, transfer, cache, and manage files across many providers (for example: Google Drive, Dropbox, OneDrive and S3-compatible services). This guide shows how to use rclone to manage your object storage on Alaya NeW.

Prerequisite

Object Storage has been provisioned for your account.

Procedure

Download and install

1. Manual install Rclone**

#Download and install Rclone
curl https://rclone.org/install.sh | sudo bash

#Verify installation
rclone --version

2. Install Using a Package Manager

2.1 Using apt(Debian/Ubuntu)
# Update package list
sudo apt update

# Install Rclone
sudo apt install rclone

# Verify installation
rclone --version
2.2 Using yum(CentOS/RHEL)
# Install the EPEL repository (if not already installed)
sudo yum install epel-release
#Install Rclone
sudo yum install rclone
#Verify installation
rclone --version
2.3 Using dnf(Fedora)
# Install Rclone
sudo dnf install rclone
# Verify installation
rclone --version

Configuration

You can configure rclone either via the command-line interface or by creating a configuration file (using a config file is recommended).

Example for Linux: create the config file at /root/.config/rclone/rclone.conf,with the following content: Note: access_key_id and secret_access_key are provided in your object storage provisioning SMS notification. The endpoint can be found on the Object Storage details page under Resource Center-Storage Management in the web console.

[s3_store]     #Custom name for this remote
type = s3
provider = Ceph
access_key_id = ******* #Replace with your actual access_key_id
secret_access_key = ******* #Replace with your actual secret_access_key
endpoint = https://s3.hd-01.alayanew.com:8082
acl = public-read-write
no_check_bucket = true

When editing your configuration file, replace the following variables:

VariableDescriptionSourceExample
s3_storeCustom remote nameUser-defineds3_store
access_key_idaccess_key_idProvisioning SMSAsjnf****233s
secret_access_keysecret_access_keyProvisioning SMSsder*******nfksu9j5lw
endpointService endpoint URLObject Storage details pagehttp://s3.hd-01.alayanew.com:8082

Usage

Common Commands

CommandDescription
rclone lsdList all directories/buckets at a path.
rclone lsList objects with size and path.
rclone copyCopy files from source to destination.
rclone moveMove files from source to destination.
rclone deleteDelete specified files or directories.
rclone rmdirRemove empty directories.
rclone syncSync files, updating only target files.
rclone helpShow rclone help documentation.
rclone help [command_name]Show detailed help for a specific command.
rclone listremotesList configured remotes.
rclone config show [s3_store]Display configuration for a remote.

Advanced Commands

CommandDescription
rclone find s3_store:/remote/path --name *.txtSearch files by name pattern.
rclone copy /local/path s3_store:/remote/path --bwlimit 1MLimit transfer speed to 1 MB/s.
rclone copy /local/path s3_store:/remote/path --retries 3Retry failed transfers up to 3 times.
rclone copy /local/path s3_store:/remote/path --log-file transfer.logLog transfers to a file.
rclone copy /local/path s3_store:/remote/path --progressShow transfer progress.
rclone copy /local/path s3_store:/remote/path --include ".txt" --exclude ".log"Include/exclude files during transfer.
rclone copy /local/path s3_store:/remote/path --transfers 4Set number of concurrent transfers.

Advanced Features

Rclone also supports advanced capabilities such as caching and encryption. Please visit the Rclone official website for more details and usage instructions.

Important Notes

  • Security:Keep your Access Key ID and Secret Access Key confidential to prevent unauthorized access.
  • Performance:For large-scale data operations, use rclone in a stable, high-bandwidth network environment to ensure optimal performance.