Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

s3: add Autonomys Auto Drive provider

Jim Counter5c91f87398f4
diff --git a/README.md b/README.md
index f1eab0da4..06f5e34e8 100644
--- a/README.md
+++ b/README.md
@@ -28,6 +28,7 @@ directories to and from different cloud storage providers.
- Alibaba Cloud (Aliyun) Object Storage System (OSS) [:page_facing_up:](https://rclone.org/s3/#alibaba-oss)
- Amazon S3 [:page_facing_up:](https://rclone.org/s3/)
- ArvanCloud Object Storage (AOS) [:page_facing_up:](https://rclone.org/s3/#arvan-cloud-object-storage-aos)
+- Autonomys Auto Drive [:page_facing_up:](https://rclone.org/s3/#autonomys)
- Bizfly Cloud Simple Storage [:page_facing_up:](https://rclone.org/s3/#bizflycloud)
- Backblaze B2 [:page_facing_up:](https://rclone.org/b2/)
- Box [:page_facing_up:](https://rclone.org/box/)
diff --git a/backend/s3/provider/Autonomys.yaml b/backend/s3/provider/Autonomys.yaml
new file mode 100644
index 000000000..5d2dc7ff1
--- /dev/null
+++ b/backend/s3/provider/Autonomys.yaml
@@ -0,0 +1,10 @@
+name: Autonomys
+description: Autonomys Auto Drive
+endpoint:
+ s3.auto-drive.autonomys.xyz: Auto Drive mainnet S3 endpoint
+quirks:
+ force_path_style: true
+ # UploadPartCopy is not supported, so copy in a single request
+ copy_cutoff: 9223372036854775807
+ # Object Lock is always on in COMPLIANCE mode and can't be set by clients
+ object_lock_supported: false
diff --git a/backend/s3/s3.go b/backend/s3/s3.go
index 64cea300c..4bd0a6fa4 100644
--- a/backend/s3/s3.go
+++ b/backend/s3/s3.go
@@ -1905,6 +1905,12 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e
if opt.Provider == "Rabata" {
f.features.Copy = nil
}
+ if opt.Provider == "Autonomys" {
+ // Versions are permanent, so Purge's version deletes are always refused.
+ f.features.Purge = nil
+ // There are no bucket endpoints: CreateBucket would be stored as an object.
+ f.opt.NoCheckBucket = true
+ }
if opt.Provider == "TencentCOS" && strings.Contains(opt.Endpoint, "cos.accelerate.myqcloud.com") {
// Global Acceleration endpoint does not support bucket creation.
f.opt.NoCheckBucket = true
diff --git a/docs/content/_index.md b/docs/content/_index.md
index 8a541ac8d..639ede4d6 100644
--- a/docs/content/_index.md
+++ b/docs/content/_index.md
@@ -116,6 +116,7 @@ WebDAV or S3, that work out of the box.)
{{< provider name="Akamai Netstorage" home="https://www.akamai.com/us/en/products/media-delivery/netstorage.jsp" config="/netstorage/" >}}
{{< provider name="Alibaba Cloud (Aliyun) Object Storage System (OSS)" home="https://www.alibabacloud.com/product/oss/" config="/s3/#alibaba-oss" >}}
{{< provider name="Amazon S3" home="https://aws.amazon.com/s3/" config="/s3/" >}}
+{{< provider name="Autonomys Auto Drive" home="https://ai3.storage/" config="/s3/#autonomys" >}}
{{< provider name="Bizfly Cloud Simple Storage" home="https://bizflycloud.vn/" config="/s3/#bizflycloud" >}}
{{< provider name="Backblaze B2" home="https://www.backblaze.com/cloud-storage" config="/b2/" >}}
{{< provider name="Box" home="https://www.box.com/" config="/box/" >}}
diff --git a/docs/content/s3.md b/docs/content/s3.md
index 639701a76..91d75d754 100644
--- a/docs/content/s3.md
+++ b/docs/content/s3.md
@@ -18,6 +18,7 @@ The S3 backend can be used with a number of different providers:
{{< provider name="China Mobile Ecloud Elastic Object Storage (EOS)" home="https://ecloud.10086.cn/home/product-introduction/eos/" config="/s3/#china-mobile-ecloud-eos" >}}
{{< provider name="Cloudflare R2" home="https://blog.cloudflare.com/r2-open-beta/" config="/s3/#cloudflare-r2" >}}
{{< provider name="Arvan Cloud Object Storage (AOS)" home="https://www.arvancloud.com/en/products/cloud-storage" config="/s3/#arvan-cloud" >}}
+{{< provider name="Autonomys Auto Drive" home="https://ai3.storage/" config="/s3/#autonomys" >}}
{{< provider name="Bizfly Cloud Simple Storage" home="https://bizflycloud.vn/" config="/s3/#bizflycloud" >}}
{{< provider name="Cubbit DS3" home="https://cubbit.io/ds3-cloud" config="/s3/#Cubbit" >}}
{{< provider name="DigitalOcean Spaces" home="https://www.digitalocean.com/products/object-storage/" config="/s3/#digitalocean-spaces" >}}
@@ -5102,6 +5103,97 @@ server_side_encryption =
storage_class =
```
+### Autonomys Auto Drive {#autonomys}
+
+[Auto Drive](https://ai3.storage/) is permanent storage on the Autonomys
+Network, with an S3-compatible API. Deleting an object hides it, but its
+data and every earlier version are kept. Buckets are created by the first
+upload into them.
+
+Use your Auto Drive API key as the `access_key_id`, and any value as the
+`secret_access_key`.
+
+Here is an example of making a configuration. First run:
+
+```console
+rclone config
+```
+
+This will guide you through an interactive setup process.
+
+```text
+No remotes found, make a new one?
+n) New remote
+s) Set configuration password
+q) Quit config
+n/s/q> n
+
+Enter name for new remote.
+name> autodrive
+
+Option Storage.
+Type of storage to configure.
+Storage> s3
+
+Option provider.
+Choose your S3 provider.
+provider> Autonomys
+
+Option env_auth.
+Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
+Only applies if access_key_id and secret_access_key is blank.
+env_auth> false
+
+Option access_key_id.
+AWS Access Key ID.
+access_key_id> YOUR_API_KEY
+
+Option secret_access_key.
+AWS Secret Access Key (password).
+secret_access_key> ANY_VALUE
+
+Option endpoint.
+Endpoint for S3 API.
+Choose a number from below, or type in your own value.
+ 1 / Auto Drive mainnet S3 endpoint
+ \ (s3.auto-drive.autonomys.xyz)
+endpoint> 1
+
+Option bucket_object_lock_enabled.
+Enable Object Lock when creating new buckets.
+Enter a boolean value (true or false). Press Enter for the default (false).
+bucket_object_lock_enabled>
+
+Edit advanced config?
+y) Yes
+n) No (default)
+y/n> n
+
+Configuration complete.
+Options:
+- type: s3
+- provider: Autonomys
+- access_key_id: YOUR_API_KEY
+- secret_access_key: ANY_VALUE
+- endpoint: s3.auto-drive.autonomys.xyz
+Keep this "autodrive" remote?
+y) Yes this is OK (default)
+e) Edit this remote
+d) Delete this remote
+y/e/d> y
+```
+
+The resulting configuration file should look like:
+
+```ini
+[autodrive]
+type = s3
+provider = Autonomys
+access_key_id = YOUR_API_KEY
+secret_access_key = ANY_VALUE
+endpoint = s3.auto-drive.autonomys.xyz
+```
+
### BizflyCloud {#bizflycloud}
[Bizfly Cloud Simple Storage](https://bizflycloud.vn/simple-storage) is an