backend: add Huawei OBS to s3 provider list
This commit is contained in:
parent
ec117593f1
commit
02b4638a22
3 changed files with 295 additions and 14 deletions
|
@ -43,6 +43,7 @@ Rclone *("rsync for cloud storage")* is a command-line program to sync files and
|
||||||
* Google Photos [:page_facing_up:](https://rclone.org/googlephotos/)
|
* Google Photos [:page_facing_up:](https://rclone.org/googlephotos/)
|
||||||
* HDFS (Hadoop Distributed Filesystem) [:page_facing_up:](https://rclone.org/hdfs/)
|
* HDFS (Hadoop Distributed Filesystem) [:page_facing_up:](https://rclone.org/hdfs/)
|
||||||
* HTTP [:page_facing_up:](https://rclone.org/http/)
|
* HTTP [:page_facing_up:](https://rclone.org/http/)
|
||||||
|
* Huawei Cloud Object Storage Service(OBS) [:page_facing_up:](https://rclone.org/s3/#huawei-obs)
|
||||||
* Hubic [:page_facing_up:](https://rclone.org/hubic/)
|
* Hubic [:page_facing_up:](https://rclone.org/hubic/)
|
||||||
* Internet Archive [:page_facing_up:](https://rclone.org/internetarchive/)
|
* Internet Archive [:page_facing_up:](https://rclone.org/internetarchive/)
|
||||||
* Jottacloud [:page_facing_up:](https://rclone.org/jottacloud/)
|
* Jottacloud [:page_facing_up:](https://rclone.org/jottacloud/)
|
||||||
|
|
116
backend/s3/s3.go
116
backend/s3/s3.go
|
@ -60,7 +60,7 @@ import (
|
||||||
func init() {
|
func init() {
|
||||||
fs.Register(&fs.RegInfo{
|
fs.Register(&fs.RegInfo{
|
||||||
Name: "s3",
|
Name: "s3",
|
||||||
Description: "Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, Digital Ocean, Dreamhost, IBM COS, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Tencent COS and Wasabi",
|
Description: "Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, Digital Ocean, Dreamhost, Huawei OBS, IBM COS, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Tencent COS and Wasabi",
|
||||||
NewFs: NewFs,
|
NewFs: NewFs,
|
||||||
CommandHelp: commandHelp,
|
CommandHelp: commandHelp,
|
||||||
Options: []fs.Option{{
|
Options: []fs.Option{{
|
||||||
|
@ -92,6 +92,9 @@ func init() {
|
||||||
}, {
|
}, {
|
||||||
Value: "Dreamhost",
|
Value: "Dreamhost",
|
||||||
Help: "Dreamhost DreamObjects",
|
Help: "Dreamhost DreamObjects",
|
||||||
|
}, {
|
||||||
|
Value: "HuaweiOBS",
|
||||||
|
Help: "Huawei Object Storage Service",
|
||||||
}, {
|
}, {
|
||||||
Value: "IBMCOS",
|
Value: "IBMCOS",
|
||||||
Help: "IBM COS S3",
|
Help: "IBM COS S3",
|
||||||
|
@ -305,6 +308,56 @@ func init() {
|
||||||
Value: "pl-waw",
|
Value: "pl-waw",
|
||||||
Help: "Warsaw, Poland",
|
Help: "Warsaw, Poland",
|
||||||
}},
|
}},
|
||||||
|
}, {
|
||||||
|
Name: "region",
|
||||||
|
Help: "Region to connect to. - the location where your bucket will be created and your data stored. Need bo be same with your endpoint.\n",
|
||||||
|
Provider: "HuaweiOBS",
|
||||||
|
Examples: []fs.OptionExample{{
|
||||||
|
Value: "af-south-1",
|
||||||
|
Help: "AF-Johannesburg",
|
||||||
|
}, {
|
||||||
|
Value: "ap-southeast-2",
|
||||||
|
Help: "AP-Bangkok",
|
||||||
|
}, {
|
||||||
|
Value: "ap-southeast-3",
|
||||||
|
Help: "AP-Singapore",
|
||||||
|
}, {
|
||||||
|
Value: "cn-east-3",
|
||||||
|
Help: "CN East-Shanghai1",
|
||||||
|
}, {
|
||||||
|
Value: "cn-east-2",
|
||||||
|
Help: "CN East-Shanghai2",
|
||||||
|
}, {
|
||||||
|
Value: "cn-north-1",
|
||||||
|
Help: "CN North-Beijing1",
|
||||||
|
}, {
|
||||||
|
Value: "cn-north-4",
|
||||||
|
Help: "CN North-Beijing4",
|
||||||
|
}, {
|
||||||
|
Value: "cn-south-1",
|
||||||
|
Help: "CN South-Guangzhou",
|
||||||
|
}, {
|
||||||
|
Value: "ap-southeast-1",
|
||||||
|
Help: "CN-Hong Kong",
|
||||||
|
}, {
|
||||||
|
Value: "sa-argentina-1",
|
||||||
|
Help: "LA-Buenos Aires1",
|
||||||
|
}, {
|
||||||
|
Value: "sa-peru-1",
|
||||||
|
Help: "LA-Lima1",
|
||||||
|
}, {
|
||||||
|
Value: "na-mexico-1",
|
||||||
|
Help: "LA-Mexico City1",
|
||||||
|
}, {
|
||||||
|
Value: "sa-chile-1",
|
||||||
|
Help: "LA-Santiago2",
|
||||||
|
}, {
|
||||||
|
Value: "sa-brazil-1",
|
||||||
|
Help: "LA-Sao Paulo1",
|
||||||
|
}, {
|
||||||
|
Value: "ru-northwest-2",
|
||||||
|
Help: "RU-Moscow2",
|
||||||
|
}},
|
||||||
}, {
|
}, {
|
||||||
Name: "region",
|
Name: "region",
|
||||||
Help: "Region to connect to.",
|
Help: "Region to connect to.",
|
||||||
|
@ -316,7 +369,7 @@ func init() {
|
||||||
}, {
|
}, {
|
||||||
Name: "region",
|
Name: "region",
|
||||||
Help: "Region to connect to.\n\nLeave blank if you are using an S3 clone and you don't have a region.",
|
Help: "Region to connect to.\n\nLeave blank if you are using an S3 clone and you don't have a region.",
|
||||||
Provider: "!AWS,Alibaba,ChinaMobile,Cloudflare,ArvanCloud,RackCorp,Scaleway,Storj,TencentCOS",
|
Provider: "!AWS,Alibaba,ChinaMobile,Cloudflare,ArvanCloud,RackCorp,Scaleway,Storj,TencentCOS,HuaweiOBS",
|
||||||
Examples: []fs.OptionExample{{
|
Examples: []fs.OptionExample{{
|
||||||
Value: "",
|
Value: "",
|
||||||
Help: "Use this if unsure.\nWill use v4 signatures and an empty region.",
|
Help: "Use this if unsure.\nWill use v4 signatures and an empty region.",
|
||||||
|
@ -708,6 +761,57 @@ func init() {
|
||||||
Value: "oss-me-east-1.aliyuncs.com",
|
Value: "oss-me-east-1.aliyuncs.com",
|
||||||
Help: "Middle East 1 (Dubai)",
|
Help: "Middle East 1 (Dubai)",
|
||||||
}},
|
}},
|
||||||
|
}, {
|
||||||
|
// obs endpoints: https://developer.huaweicloud.com/intl/en-us/endpoint?OBS
|
||||||
|
Name: "endpoint",
|
||||||
|
Help: "Endpoint for OBS API.",
|
||||||
|
Provider: "HuaweiOBS",
|
||||||
|
Examples: []fs.OptionExample{{
|
||||||
|
Value: "obs.af-south-1.myhuaweicloud.com",
|
||||||
|
Help: "AF-Johannesburg",
|
||||||
|
}, {
|
||||||
|
Value: "obs.ap-southeast-2.myhuaweicloud.com",
|
||||||
|
Help: "AP-Bangkok",
|
||||||
|
}, {
|
||||||
|
Value: "obs.ap-southeast-3.myhuaweicloud.com",
|
||||||
|
Help: "AP-Singapore",
|
||||||
|
}, {
|
||||||
|
Value: "obs.cn-east-3.myhuaweicloud.com",
|
||||||
|
Help: "CN East-Shanghai1",
|
||||||
|
}, {
|
||||||
|
Value: "obs.cn-east-2.myhuaweicloud.com",
|
||||||
|
Help: "CN East-Shanghai2",
|
||||||
|
}, {
|
||||||
|
Value: "obs.cn-north-1.myhuaweicloud.com",
|
||||||
|
Help: "CN North-Beijing1",
|
||||||
|
}, {
|
||||||
|
Value: "obs.cn-north-4.myhuaweicloud.com",
|
||||||
|
Help: "CN North-Beijing4",
|
||||||
|
}, {
|
||||||
|
Value: "obs.cn-south-1.myhuaweicloud.com",
|
||||||
|
Help: "CN South-Guangzhou",
|
||||||
|
}, {
|
||||||
|
Value: "obs.ap-southeast-1.myhuaweicloud.com",
|
||||||
|
Help: "CN-Hong Kong",
|
||||||
|
}, {
|
||||||
|
Value: "obs.sa-argentina-1.myhuaweicloud.com",
|
||||||
|
Help: "LA-Buenos Aires1",
|
||||||
|
}, {
|
||||||
|
Value: "obs.sa-peru-1.myhuaweicloud.com",
|
||||||
|
Help: "LA-Lima1",
|
||||||
|
}, {
|
||||||
|
Value: "obs.na-mexico-1.myhuaweicloud.com",
|
||||||
|
Help: "LA-Mexico City1",
|
||||||
|
}, {
|
||||||
|
Value: "obs.sa-chile-1.myhuaweicloud.com",
|
||||||
|
Help: "LA-Santiago2",
|
||||||
|
}, {
|
||||||
|
Value: "obs.sa-brazil-1.myhuaweicloud.com",
|
||||||
|
Help: "LA-Sao Paulo1",
|
||||||
|
}, {
|
||||||
|
Value: "obs.ru-northwest-2.myhuaweicloud.com",
|
||||||
|
Help: "RU-Moscow2",
|
||||||
|
}},
|
||||||
}, {
|
}, {
|
||||||
Name: "endpoint",
|
Name: "endpoint",
|
||||||
Help: "Endpoint for Scaleway Object Storage.",
|
Help: "Endpoint for Scaleway Object Storage.",
|
||||||
|
@ -879,7 +983,7 @@ func init() {
|
||||||
}, {
|
}, {
|
||||||
Name: "endpoint",
|
Name: "endpoint",
|
||||||
Help: "Endpoint for S3 API.\n\nRequired when using an S3 clone.",
|
Help: "Endpoint for S3 API.\n\nRequired when using an S3 clone.",
|
||||||
Provider: "!AWS,IBMCOS,TencentCOS,Alibaba,ChinaMobile,ArvanCloud,Scaleway,StackPath,Storj,RackCorp",
|
Provider: "!AWS,IBMCOS,TencentCOS,HuaweiOBS,Alibaba,ChinaMobile,ArvanCloud,Scaleway,StackPath,Storj,RackCorp",
|
||||||
Examples: []fs.OptionExample{{
|
Examples: []fs.OptionExample{{
|
||||||
Value: "objects-us-east-1.dream.io",
|
Value: "objects-us-east-1.dream.io",
|
||||||
Help: "Dream Objects endpoint",
|
Help: "Dream Objects endpoint",
|
||||||
|
@ -1289,7 +1393,7 @@ func init() {
|
||||||
}, {
|
}, {
|
||||||
Name: "location_constraint",
|
Name: "location_constraint",
|
||||||
Help: "Location constraint - must be set to match the Region.\n\nLeave blank if not sure. Used when creating buckets only.",
|
Help: "Location constraint - must be set to match the Region.\n\nLeave blank if not sure. Used when creating buckets only.",
|
||||||
Provider: "!AWS,IBMCOS,Alibaba,ChinaMobile,Cloudflare,ArvanCloud,RackCorp,Scaleway,StackPath,Storj,TencentCOS",
|
Provider: "!AWS,IBMCOS,Alibaba,HuaweiOBS,ChinaMobile,Cloudflare,ArvanCloud,RackCorp,Scaleway,StackPath,Storj,TencentCOS",
|
||||||
}, {
|
}, {
|
||||||
Name: "acl",
|
Name: "acl",
|
||||||
Help: `Canned ACL used when creating buckets and storing or copying objects.
|
Help: `Canned ACL used when creating buckets and storing or copying objects.
|
||||||
|
@ -2248,6 +2352,10 @@ func setQuirks(opt *Options) {
|
||||||
// No quirks
|
// No quirks
|
||||||
case "Alibaba":
|
case "Alibaba":
|
||||||
useMultipartEtag = false // Alibaba seems to calculate multipart Etags differently from AWS
|
useMultipartEtag = false // Alibaba seems to calculate multipart Etags differently from AWS
|
||||||
|
case "HuaweiOBS":
|
||||||
|
// Huawei OBS PFS is not support listObjectV2, and if turn on the urlEncodeListing, marker will not work and keep list same page forever.
|
||||||
|
urlEncodeListings = false
|
||||||
|
listObjectsV2 = false
|
||||||
case "Ceph":
|
case "Ceph":
|
||||||
listObjectsV2 = false
|
listObjectsV2 = false
|
||||||
virtualHostStyle = false
|
virtualHostStyle = false
|
||||||
|
|
|
@ -16,6 +16,7 @@ The S3 backend can be used with a number of different providers:
|
||||||
{{< provider name="Arvan Cloud Object Storage (AOS)" home="https://www.arvancloud.com/en/products/cloud-storage" config="/s3/#arvan-cloud-object-storage-aos" >}}
|
{{< provider name="Arvan Cloud Object Storage (AOS)" home="https://www.arvancloud.com/en/products/cloud-storage" config="/s3/#arvan-cloud-object-storage-aos" >}}
|
||||||
{{< provider name="DigitalOcean Spaces" home="https://www.digitalocean.com/products/object-storage/" config="/s3/#digitalocean-spaces" >}}
|
{{< provider name="DigitalOcean Spaces" home="https://www.digitalocean.com/products/object-storage/" config="/s3/#digitalocean-spaces" >}}
|
||||||
{{< provider name="Dreamhost" home="https://www.dreamhost.com/cloud/storage/" config="/s3/#dreamhost" >}}
|
{{< provider name="Dreamhost" home="https://www.dreamhost.com/cloud/storage/" config="/s3/#dreamhost" >}}
|
||||||
|
{{< provider name="Huawei OBS" home="https://www.huaweicloud.com/intl/en-us/product/obs.html" config="/s3/#huawei-obs" >}}
|
||||||
{{< provider name="IBM COS S3" home="http://www.ibm.com/cloud/object-storage" config="/s3/#ibm-cos-s3" >}}
|
{{< provider name="IBM COS S3" home="http://www.ibm.com/cloud/object-storage" config="/s3/#ibm-cos-s3" >}}
|
||||||
{{< provider name="Minio" home="https://www.minio.io/" config="/s3/#minio" >}}
|
{{< provider name="Minio" home="https://www.minio.io/" config="/s3/#minio" >}}
|
||||||
{{< provider name="RackCorp Object Storage" home="https://www.rackcorp.com/" config="/s3/#RackCorp" >}}
|
{{< provider name="RackCorp Object Storage" home="https://www.rackcorp.com/" config="/s3/#RackCorp" >}}
|
||||||
|
@ -569,7 +570,7 @@ A simple solution is to set the `--s3-upload-cutoff 0` and force all the files t
|
||||||
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/s3/s3.go then run make backenddocs" >}}
|
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/s3/s3.go then run make backenddocs" >}}
|
||||||
### Standard options
|
### Standard options
|
||||||
|
|
||||||
Here are the standard options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, ArvanCloud, Digital Ocean, Dreamhost, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS).
|
Here are the standard options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, ArvanCloud, Digital Ocean, Dreamhost, Huawei OBS, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS).
|
||||||
|
|
||||||
#### --s3-provider
|
#### --s3-provider
|
||||||
|
|
||||||
|
@ -596,6 +597,8 @@ Properties:
|
||||||
- Digital Ocean Spaces
|
- Digital Ocean Spaces
|
||||||
- "Dreamhost"
|
- "Dreamhost"
|
||||||
- Dreamhost DreamObjects
|
- Dreamhost DreamObjects
|
||||||
|
- "HuaweiOBS"
|
||||||
|
- Huawei Object Storage Service
|
||||||
- "IBMCOS"
|
- "IBMCOS"
|
||||||
- IBM COS S3
|
- IBM COS S3
|
||||||
- "LyveCloud"
|
- "LyveCloud"
|
||||||
|
@ -833,7 +836,7 @@ Properties:
|
||||||
|
|
||||||
- Config: region
|
- Config: region
|
||||||
- Env Var: RCLONE_S3_REGION
|
- Env Var: RCLONE_S3_REGION
|
||||||
- Provider: !AWS,Alibaba,ChinaMobile,ArvanCloud,RackCorp,Scaleway,Storj,TencentCOS
|
- Provider: !AWS,Alibaba,ChinaMobile,ArvanCloud,RackCorp,Scaleway,Storj,TencentCOS,HuaweiOBS
|
||||||
- Type: string
|
- Type: string
|
||||||
- Required: false
|
- Required: false
|
||||||
- Examples:
|
- Examples:
|
||||||
|
@ -946,6 +949,48 @@ Endpoint for Arvan Cloud Object Storage (AOS) API.
|
||||||
- "s3.ir-tbz-sh1.arvanstorage.com"
|
- "s3.ir-tbz-sh1.arvanstorage.com"
|
||||||
- Tabriz Iran (Shahriar)
|
- Tabriz Iran (Shahriar)
|
||||||
|
|
||||||
|
#### --s3-endpoint
|
||||||
|
|
||||||
|
Endpoint for Huawei Cloud Object Storage Service (OBS) API.
|
||||||
|
|
||||||
|
- Config: endpoint
|
||||||
|
- Env Var: RCLONE_S3_ENDPOINT
|
||||||
|
- Provider: HuaweiOBS
|
||||||
|
- Type: string
|
||||||
|
- Required: false
|
||||||
|
- Examples:
|
||||||
|
- "obs.af-south-1.myhuaweicloud.com"
|
||||||
|
- AF-Johannesburg Endpoint
|
||||||
|
- "obs.ap-southeast-2.myhuaweicloud.com"
|
||||||
|
- AP-Bangkok Endpoint
|
||||||
|
- "obs.ap-southeast-3.myhuaweicloud.com"
|
||||||
|
- AP-Singapore Endpoint
|
||||||
|
- "obs.cn-east-3.myhuaweicloud.com"
|
||||||
|
- CN East-Shanghai1 Endpoint
|
||||||
|
- "obs.cn-east-2.myhuaweicloud.com"
|
||||||
|
- CN East-Shanghai2 Endpoint
|
||||||
|
- "obs.cn-north-1.myhuaweicloud.com"
|
||||||
|
- CN North-Beijing1 Endpoint
|
||||||
|
- "obs.cn-north-4.myhuaweicloud.com"
|
||||||
|
- CN North-Beijing4 Endpoint
|
||||||
|
- "obs.cn-south-1.myhuaweicloud.com"
|
||||||
|
- CN South-Guangzhou Endpoint
|
||||||
|
- "obs.ap-southeast-1.myhuaweicloud.com"
|
||||||
|
- CN-Hong Kong Endpoint
|
||||||
|
- "obs.sa-argentina-1.myhuaweicloud.com"
|
||||||
|
- LA-Buenos Aires1 Endpoint
|
||||||
|
- "obs.sa-peru-1.myhuaweicloud.com"
|
||||||
|
- LA-Lima1 Endpoint
|
||||||
|
- "obs.na-mexico-1.myhuaweicloud.com"
|
||||||
|
- LA-Mexico City1 Endpoint
|
||||||
|
- "obs.sa-chile-1.myhuaweicloud.com"
|
||||||
|
- LA-Santiago2 Endpoint
|
||||||
|
- "obs.sa-brazil-1.myhuaweicloud.com"
|
||||||
|
- LA-Sao Paulo1 Endpoint
|
||||||
|
- "obs.ru-northwest-2.myhuaweicloud.com"
|
||||||
|
- RU-Moscow2 Endpoint
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### --s3-endpoint
|
#### --s3-endpoint
|
||||||
|
@ -1317,7 +1362,7 @@ Properties:
|
||||||
|
|
||||||
- Config: endpoint
|
- Config: endpoint
|
||||||
- Env Var: RCLONE_S3_ENDPOINT
|
- Env Var: RCLONE_S3_ENDPOINT
|
||||||
- Provider: !AWS,IBMCOS,TencentCOS,Alibaba,ChinaMobile,ArvanCloud,Scaleway,StackPath,Storj,RackCorp
|
- Provider: !AWS,IBMCOS,TencentCOS,Alibaba,ChinaMobile,ArvanCloud,Scaleway,StackPath,Storj,RackCorp,HuaweiOBS
|
||||||
- Type: string
|
- Type: string
|
||||||
- Required: false
|
- Required: false
|
||||||
- Examples:
|
- Examples:
|
||||||
|
@ -1556,7 +1601,7 @@ Properties:
|
||||||
|
|
||||||
- Config: location_constraint
|
- Config: location_constraint
|
||||||
- Env Var: RCLONE_S3_LOCATION_CONSTRAINT
|
- Env Var: RCLONE_S3_LOCATION_CONSTRAINT
|
||||||
- Provider: !AWS,IBMCOS,Alibaba,ChinaMobile,ArvanCloud,RackCorp,Scaleway,StackPath,Storj,TencentCOS
|
- Provider: !AWS,IBMCOS,Alibaba,ChinaMobile,ArvanCloud,RackCorp,Scaleway,StackPath,Storj,TencentCOS,HuaweiOBS
|
||||||
- Type: string
|
- Type: string
|
||||||
- Required: false
|
- Required: false
|
||||||
|
|
||||||
|
@ -1784,7 +1829,7 @@ Properties:
|
||||||
|
|
||||||
### Advanced options
|
### Advanced options
|
||||||
|
|
||||||
Here are the advanced options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, ArvanCloud, Digital Ocean, Dreamhost, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS).
|
Here are the advanced options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, ArvanCloud, Digital Ocean, Dreamhost, Huawei OBS, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS).
|
||||||
|
|
||||||
#### --s3-bucket-acl
|
#### --s3-bucket-acl
|
||||||
|
|
||||||
|
@ -2590,7 +2635,7 @@ Option Storage.
|
||||||
Type of storage to configure.
|
Type of storage to configure.
|
||||||
Choose a number from below, or type in your own value.
|
Choose a number from below, or type in your own value.
|
||||||
...
|
...
|
||||||
XX / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, Digital Ocean, Dreamhost, IBM COS, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Tencent COS and Wasabi
|
XX / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, Digital Ocean, Dreamhost, Huawei OBS, IBM COS, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Tencent COS and Wasabi
|
||||||
\ (s3)
|
\ (s3)
|
||||||
...
|
...
|
||||||
Storage> s3
|
Storage> s3
|
||||||
|
@ -2731,6 +2776,133 @@ Once configured, you can create a new Space and begin copying files. For example
|
||||||
rclone mkdir spaces:my-new-space
|
rclone mkdir spaces:my-new-space
|
||||||
rclone copy /path/to/files spaces:my-new-space
|
rclone copy /path/to/files spaces:my-new-space
|
||||||
```
|
```
|
||||||
|
### Huawei OBS {#huawei-obs}
|
||||||
|
|
||||||
|
Object Storage Service (OBS) provides stable, secure, efficient, and easy-to-use cloud storage that lets you store virtually any volume of unstructured data in any format and access it from anywhere.
|
||||||
|
|
||||||
|
OBS provides an S3 interface, you can copy and modify the following configuration and add it to your rclone configuration file.
|
||||||
|
```
|
||||||
|
[obs]
|
||||||
|
type = s3
|
||||||
|
provider = HuaweiOBS
|
||||||
|
access_key_id = your-access-key-id
|
||||||
|
secret_access_key = your-secret-access-key
|
||||||
|
region = af-south-1
|
||||||
|
endpoint = obs.af-south-1.myhuaweicloud.com
|
||||||
|
acl = private
|
||||||
|
```
|
||||||
|
|
||||||
|
Or you can also configure via the interactive command line:
|
||||||
|
```
|
||||||
|
No remotes found, make a new one?
|
||||||
|
n) New remote
|
||||||
|
s) Set configuration password
|
||||||
|
q) Quit config
|
||||||
|
n/s/q> n
|
||||||
|
name> obs
|
||||||
|
Option Storage.
|
||||||
|
Type of storage to configure.
|
||||||
|
Choose a number from below, or type in your own value.
|
||||||
|
[snip]
|
||||||
|
5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, Digital Ocean, Dreamhost, Huawei OBS, IBM COS, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Tencent COS and Wasabi
|
||||||
|
\ (s3)
|
||||||
|
[snip]
|
||||||
|
Storage> 5
|
||||||
|
Option provider.
|
||||||
|
Choose your S3 provider.
|
||||||
|
Choose a number from below, or type in your own value.
|
||||||
|
Press Enter to leave empty.
|
||||||
|
[snip]
|
||||||
|
9 / Huawei Object Storage Service
|
||||||
|
\ (HuaweiOBS)
|
||||||
|
[snip]
|
||||||
|
provider> 9
|
||||||
|
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.
|
||||||
|
Choose a number from below, or type in your own boolean value (true or false).
|
||||||
|
Press Enter for the default (false).
|
||||||
|
1 / Enter AWS credentials in the next step.
|
||||||
|
\ (false)
|
||||||
|
2 / Get AWS credentials from the environment (env vars or IAM).
|
||||||
|
\ (true)
|
||||||
|
env_auth> 1
|
||||||
|
Option access_key_id.
|
||||||
|
AWS Access Key ID.
|
||||||
|
Leave blank for anonymous access or runtime credentials.
|
||||||
|
Enter a value. Press Enter to leave empty.
|
||||||
|
access_key_id> your-access-key-id
|
||||||
|
Option secret_access_key.
|
||||||
|
AWS Secret Access Key (password).
|
||||||
|
Leave blank for anonymous access or runtime credentials.
|
||||||
|
Enter a value. Press Enter to leave empty.
|
||||||
|
secret_access_key> your-secret-access-key
|
||||||
|
Option region.
|
||||||
|
Region to connect to.
|
||||||
|
Choose a number from below, or type in your own value.
|
||||||
|
Press Enter to leave empty.
|
||||||
|
1 / AF-Johannesburg
|
||||||
|
\ (af-south-1)
|
||||||
|
2 / AP-Bangkok
|
||||||
|
\ (ap-southeast-2)
|
||||||
|
[snip]
|
||||||
|
region> 1
|
||||||
|
Option endpoint.
|
||||||
|
Endpoint for OBS API.
|
||||||
|
Choose a number from below, or type in your own value.
|
||||||
|
Press Enter to leave empty.
|
||||||
|
1 / AF-Johannesburg
|
||||||
|
\ (obs.af-south-1.myhuaweicloud.com)
|
||||||
|
2 / AP-Bangkok
|
||||||
|
\ (obs.ap-southeast-2.myhuaweicloud.com)
|
||||||
|
[snip]
|
||||||
|
endpoint> 1
|
||||||
|
Option acl.
|
||||||
|
Canned ACL used when creating buckets and storing or copying objects.
|
||||||
|
This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
|
||||||
|
For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
|
||||||
|
Note that this ACL is applied when server-side copying objects as S3
|
||||||
|
doesn't copy the ACL from the source but rather writes a fresh one.
|
||||||
|
Choose a number from below, or type in your own value.
|
||||||
|
Press Enter to leave empty.
|
||||||
|
/ Owner gets FULL_CONTROL.
|
||||||
|
1 | No one else has access rights (default).
|
||||||
|
\ (private)
|
||||||
|
[snip]
|
||||||
|
acl> 1
|
||||||
|
Edit advanced config?
|
||||||
|
y) Yes
|
||||||
|
n) No (default)
|
||||||
|
y/n>
|
||||||
|
--------------------
|
||||||
|
[obs]
|
||||||
|
type = s3
|
||||||
|
provider = HuaweiOBS
|
||||||
|
access_key_id = your-access-key-id
|
||||||
|
secret_access_key = your-secret-access-key
|
||||||
|
region = af-south-1
|
||||||
|
endpoint = obs.af-south-1.myhuaweicloud.com
|
||||||
|
acl = private
|
||||||
|
--------------------
|
||||||
|
y) Yes this is OK (default)
|
||||||
|
e) Edit this remote
|
||||||
|
d) Delete this remote
|
||||||
|
y/e/d> y
|
||||||
|
Current remotes:
|
||||||
|
|
||||||
|
Name Type
|
||||||
|
==== ====
|
||||||
|
obs s3
|
||||||
|
|
||||||
|
e) Edit existing remote
|
||||||
|
n) New remote
|
||||||
|
d) Delete remote
|
||||||
|
r) Rename remote
|
||||||
|
c) Copy remote
|
||||||
|
s) Set configuration password
|
||||||
|
q) Quit config
|
||||||
|
e/n/d/r/c/s/q> q
|
||||||
|
```
|
||||||
|
|
||||||
### IBM COS (S3)
|
### IBM COS (S3)
|
||||||
|
|
||||||
|
@ -3045,7 +3217,7 @@ Choose `s3` backend
|
||||||
Type of storage to configure.
|
Type of storage to configure.
|
||||||
Choose a number from below, or type in your own value.
|
Choose a number from below, or type in your own value.
|
||||||
[snip]
|
[snip]
|
||||||
XX / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, ArvanCloud, Digital Ocean, Dreamhost, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS
|
XX / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, ArvanCloud, Digital Ocean, Dreamhost, Huawei OBS, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS
|
||||||
\ (s3)
|
\ (s3)
|
||||||
[snip]
|
[snip]
|
||||||
Storage> s3
|
Storage> s3
|
||||||
|
@ -3346,7 +3518,7 @@ Type of storage to configure.
|
||||||
Enter a string value. Press Enter for the default ("").
|
Enter a string value. Press Enter for the default ("").
|
||||||
Choose a number from below, or type in your own value
|
Choose a number from below, or type in your own value
|
||||||
[snip]
|
[snip]
|
||||||
4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, ArvanCloud, Digital Ocean, Dreamhost, IBM COS, Minio, and Tencent COS
|
4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, ArvanCloud, Digital Ocean, Dreamhost, Huawei OBS, IBM COS, Minio, and Tencent COS
|
||||||
\ "s3"
|
\ "s3"
|
||||||
[snip]
|
[snip]
|
||||||
Storage> s3
|
Storage> s3
|
||||||
|
@ -3456,7 +3628,7 @@ Option Storage.
|
||||||
Type of storage to configure.
|
Type of storage to configure.
|
||||||
Choose a number from below, or type in your own value.
|
Choose a number from below, or type in your own value.
|
||||||
...
|
...
|
||||||
5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, Digital Ocean, Dreamhost, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS
|
5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, Digital Ocean, Dreamhost, Huawei OBS, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS
|
||||||
\ (s3)
|
\ (s3)
|
||||||
...
|
...
|
||||||
Storage> s3
|
Storage> s3
|
||||||
|
@ -3827,7 +3999,7 @@ Choose a number from below, or type in your own value
|
||||||
\ "alias"
|
\ "alias"
|
||||||
3 / Amazon Drive
|
3 / Amazon Drive
|
||||||
\ "amazon cloud drive"
|
\ "amazon cloud drive"
|
||||||
4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, ArvanCloud, Digital Ocean, Dreamhost, IBM COS, Minio, and Tencent COS
|
4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, ArvanCloud, Digital Ocean, Dreamhost, Huawei OBS, IBM COS, Minio, and Tencent COS
|
||||||
\ "s3"
|
\ "s3"
|
||||||
[snip]
|
[snip]
|
||||||
Storage> s3
|
Storage> s3
|
||||||
|
|
Loading…
Reference in a new issue