Use S4 with Rclone
Goal
Rclone is a backup tool that syncs with a wide range of storage backends and runs on Windows, macOS, and Linux.
This guide shows you how to set up Rclone to sync your files with S4 object storage.
Make sure you've signed up for a Bitiful account and completed real-name verification.
Prerequisites
- You've created an S4 bucket.
- You've created a sub-account and an access_key for it.
- You've granted the
sub-accountfull permissions on therelevant bucket.
Instructions
To configure Rclone, edit or create the ~/.config/rclone/rclone.conf file and add the following:
[s4-demo]
type = s3
provider = Other
env_auth = false
access_key_id = <access_key>
secret_access_key = <secret_key>
end = https://s3.bitiful.netRclone is now ready to use.
Example commands
List all buckets:
$ rclone lsd s4-demo: Create a new bucket:
$ rclone mkdir s4-demo:mybucket List the contents of a bucket:
$ rclone ls s4-demo:mybucket Sync /home/user/documents to a bucket:
$ rclone sync /home/user/documents s4-demo:我的桶Copy the file /home/user/bitifl-logo.png to a bucket:
$ rclone copy /home/user/bitifl-logo.png s4-demo:mybucketDownload the file bitifl-logo.png from a bucket:
$ rclone copy s4-demo:mybucket/bitifl-logo.png bitifl-logo.png Mount a bucket as a local directory:
$ rclone mount s4-demo:/ /LOCAL_DIR --no-modtime --no-checksum --no-seek \
--daemon \
--allow-other \
--vfs-cache-mode full \
--dir-cache-time 1m \
--buffer-size 128M \
--transfers 200 \
--checkers 200 \
--tpslimit 200 \
--vfs-read-chunk-size 10M \
--vfs-read-chunk-size-limit 256M \
--vfs-cache-max-age 24h \
--vfs-cache-max-size 1G \
--log-level INFO \
--log-file ./rclone.log \
--umask 002 \
--attr-timeout 1s \
--volname "s4mount"