Skip to main content

Using Object Storage

Updated at: 2025-12-12 16:03:25

Object storage is a widely used cloud storage model designed for storing and managing large amount of unstructured data. In Virtual Kubernetes Services (VKS), object storage is commonly used for staging, persistence, and data transfer workflows. We recommend using Rclone to manage your object storage resources.

Introduction to Rclone

Rclone is a powerful command-line tool for managing cloud storage. It supports synchronization, transfer, caching, and file management across a wide range of storage providers, including Google Drive, Dropbox, OneDrive, and S3-compatible services. This guide shows how to use Rclone to manage your object storage on Alaya NeW Cloud.

Prerequisite

Object Storage has been provisioned under your account.

Procedure

Download and install

1. Manually 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: The 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 or buckets in a remote.
rclone lsList objects along 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.