Rclone is another powerful tool that can be used with Pilvio S3 object storage.
This guide was tested on Centos 7 and Rclone version v1.55.1-DEV.
Other installation options can be found here: https://rclone.org/install/
yum install rclone
rclone config file
2022/02/21 13:17:00 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults The configuration file doesn't exist, but rclone will use this path: /root/.config/rclone/rclone.conf
Let’s add Pilvio S3 configuration to rclone.conf file.
Use your favorite text editor and add following data to rclone.conf file:
Do not forget to set access_key_id and secret_access_key with your values.
[pilvio] type = s3 provider = Other env_auth = false access_key_id = NqTqcpjnNpCTW3bpMrcdN secret_access_key = XJx4sxLM9v3TsmKVdTwMJLhPFFxtrMhpJRNRqsgV endpoint = https://s3.pilw.io acl = private
Now we can test connection to Pilvio S3
Let’s list your buckets.
rclone lsd pilvio:
rclone lsd pilvio: -1 2022-02-11 18:41:20 -1 go-example -1 2022-02-15 16:31:21 -1 js-example -1 2022-02-07 21:03:35 -1 mybigdata -1 2022-02-08 09:50:42 -1 mybigstorage -1 2022-02-11 23:22:47 -1 nextcloud-example -1 2022-02-11 23:35:53 -1 nextcloud-primary -1 2022-02-11 20:02:13 -1 perl-example -1 2022-02-11 20:20:10 -1 python-example -1 2022-02-11 21:20:43 -1 ruby-example -1 2022-02-08 14:35:05 -1 superbucket -1 2022-02-09 20:14:43 -1 videostorage -1 2022-02-17 14:39:58 -1 winscp
You can create a bucket using this command:
rclone mkdir pilvio:rclone-test
To upload a file to your bucket, use the following command:
rclone copy hello.txt pilvio:rclone-test
Now we can list content of rclone-test bucket to confirm that file was uploaded successfully.
rclone ls pilvio:rclone-test
Rclone has some interesting functionality. For example, you can get md5sum of objects in your bucket.
rclone md5sum pilvio:rclone-test f0ef7081e1539ac00ef5b761b4fb01b3 hello.txt
Please check official Rclone documentation for more examples: