2014-03-29 06:34:13 +08:00
|
|
|
|
---
|
|
|
|
|
title: "Swift"
|
|
|
|
|
description: "Swift"
|
|
|
|
|
---
|
|
|
|
|
|
2020-05-22 19:22:52 +08:00
|
|
|
|
{{< icon "fa fa-space-shuttle" >}}Swift
|
2014-07-18 03:03:11 +08:00
|
|
|
|
----------------------------------------
|
|
|
|
|
|
2020-05-20 18:54:33 +08:00
|
|
|
|
Swift refers to [OpenStack Object Storage](https://docs.openstack.org/swift/latest/).
|
2014-03-29 06:34:13 +08:00
|
|
|
|
Commercial implementations of that being:
|
|
|
|
|
|
2017-03-29 20:38:34 +08:00
|
|
|
|
* [Rackspace Cloud Files](https://www.rackspace.com/cloud/files/)
|
|
|
|
|
* [Memset Memstore](https://www.memset.com/cloud/storage/)
|
2017-09-26 00:55:19 +08:00
|
|
|
|
* [OVH Object Storage](https://www.ovh.co.uk/public-cloud/storage/object-storage/)
|
|
|
|
|
* [Oracle Cloud Storage](https://cloud.oracle.com/storage-opc)
|
2017-11-03 03:29:40 +08:00
|
|
|
|
* [IBM Bluemix Cloud ObjectStorage Swift](https://console.bluemix.net/docs/infrastructure/objectstorage-swift/index.html)
|
2014-03-29 06:34:13 +08:00
|
|
|
|
|
2014-07-18 03:03:11 +08:00
|
|
|
|
Paths are specified as `remote:container` (or `remote:` for the `lsd`
|
2020-10-14 05:49:58 +08:00
|
|
|
|
command.) You may put subdirectories in too, e.g. `remote:container/path/to/dir`.
|
2014-03-29 06:34:13 +08:00
|
|
|
|
|
|
|
|
|
Here is an example of making a swift configuration. First run
|
|
|
|
|
|
|
|
|
|
rclone config
|
|
|
|
|
|
|
|
|
|
This will guide you through an interactive setup process.
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
No remotes found - make a new one
|
|
|
|
|
n) New remote
|
2016-02-21 21:39:04 +08:00
|
|
|
|
s) Set configuration password
|
2017-08-11 04:38:45 +08:00
|
|
|
|
q) Quit config
|
|
|
|
|
n/s/q> n
|
2014-03-29 06:34:13 +08:00
|
|
|
|
name> remote
|
2016-02-21 21:39:04 +08:00
|
|
|
|
Type of storage to configure.
|
|
|
|
|
Choose a number from below, or type in your own value
|
2019-08-26 17:47:17 +08:00
|
|
|
|
[snip]
|
2020-05-20 18:54:33 +08:00
|
|
|
|
XX / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
|
2016-02-21 21:39:04 +08:00
|
|
|
|
\ "swift"
|
2019-08-26 17:47:17 +08:00
|
|
|
|
[snip]
|
2017-08-11 04:38:45 +08:00
|
|
|
|
Storage> swift
|
|
|
|
|
Get swift credentials from environment variables in standard OpenStack form.
|
|
|
|
|
Choose a number from below, or type in your own value
|
|
|
|
|
1 / Enter swift credentials in the next step
|
|
|
|
|
\ "false"
|
|
|
|
|
2 / Get swift credentials from environment vars. Leave other fields blank if using this.
|
|
|
|
|
\ "true"
|
2017-12-08 05:30:58 +08:00
|
|
|
|
env_auth> true
|
|
|
|
|
User name to log in (OS_USERNAME).
|
|
|
|
|
user>
|
|
|
|
|
API key or password (OS_PASSWORD).
|
|
|
|
|
key>
|
|
|
|
|
Authentication URL for server (OS_AUTH_URL).
|
2014-03-29 06:34:13 +08:00
|
|
|
|
Choose a number from below, or type in your own value
|
2016-02-21 21:39:04 +08:00
|
|
|
|
1 / Rackspace US
|
|
|
|
|
\ "https://auth.api.rackspacecloud.com/v1.0"
|
|
|
|
|
2 / Rackspace UK
|
|
|
|
|
\ "https://lon.auth.api.rackspacecloud.com/v1.0"
|
|
|
|
|
3 / Rackspace v2
|
|
|
|
|
\ "https://identity.api.rackspacecloud.com/v2.0"
|
|
|
|
|
4 / Memset Memstore UK
|
|
|
|
|
\ "https://auth.storage.memset.com/v1.0"
|
|
|
|
|
5 / Memset Memstore UK v2
|
|
|
|
|
\ "https://auth.storage.memset.com/v2.0"
|
|
|
|
|
6 / OVH
|
2020-01-25 01:43:00 +08:00
|
|
|
|
\ "https://auth.cloud.ovh.net/v3"
|
2017-12-08 05:30:58 +08:00
|
|
|
|
auth>
|
2017-11-03 03:29:40 +08:00
|
|
|
|
User ID to log in - optional - most swift systems use user and leave this blank (v3 auth) (OS_USER_ID).
|
2017-12-08 05:30:58 +08:00
|
|
|
|
user_id>
|
|
|
|
|
User domain - optional (v3 auth) (OS_USER_DOMAIN_NAME)
|
|
|
|
|
domain>
|
|
|
|
|
Tenant name - optional for v1 auth, this or tenant_id required otherwise (OS_TENANT_NAME or OS_PROJECT_NAME)
|
|
|
|
|
tenant>
|
2017-11-03 03:29:40 +08:00
|
|
|
|
Tenant ID - optional for v1 auth, this or tenant required otherwise (OS_TENANT_ID)
|
2017-12-08 05:30:58 +08:00
|
|
|
|
tenant_id>
|
|
|
|
|
Tenant domain - optional (v3 auth) (OS_PROJECT_DOMAIN_NAME)
|
|
|
|
|
tenant_domain>
|
|
|
|
|
Region name - optional (OS_REGION_NAME)
|
|
|
|
|
region>
|
|
|
|
|
Storage URL - optional (OS_STORAGE_URL)
|
|
|
|
|
storage_url>
|
|
|
|
|
Auth Token from alternate authentication - optional (OS_AUTH_TOKEN)
|
|
|
|
|
auth_token>
|
|
|
|
|
AuthVersion - optional - set to (1,2,3) if your auth URL has no version (ST_AUTH_VERSION)
|
|
|
|
|
auth_version>
|
|
|
|
|
Endpoint type to choose from the service catalogue (OS_ENDPOINT_TYPE)
|
2017-08-11 04:38:45 +08:00
|
|
|
|
Choose a number from below, or type in your own value
|
|
|
|
|
1 / Public (default, choose this if not sure)
|
|
|
|
|
\ "public"
|
|
|
|
|
2 / Internal (use internal service net)
|
|
|
|
|
\ "internal"
|
|
|
|
|
3 / Admin
|
|
|
|
|
\ "admin"
|
2017-12-08 05:30:58 +08:00
|
|
|
|
endpoint_type>
|
2017-01-09 13:09:19 +08:00
|
|
|
|
Remote config
|
2014-03-29 06:34:13 +08:00
|
|
|
|
--------------------
|
2017-12-08 05:30:58 +08:00
|
|
|
|
[test]
|
|
|
|
|
env_auth = true
|
|
|
|
|
user =
|
|
|
|
|
key =
|
|
|
|
|
auth =
|
|
|
|
|
user_id =
|
|
|
|
|
domain =
|
|
|
|
|
tenant =
|
|
|
|
|
tenant_id =
|
|
|
|
|
tenant_domain =
|
|
|
|
|
region =
|
|
|
|
|
storage_url =
|
|
|
|
|
auth_token =
|
|
|
|
|
auth_version =
|
|
|
|
|
endpoint_type =
|
2014-03-29 06:34:13 +08:00
|
|
|
|
--------------------
|
|
|
|
|
y) Yes this is OK
|
|
|
|
|
e) Edit this remote
|
|
|
|
|
d) Delete this remote
|
|
|
|
|
y/e/d> y
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
This remote is called `remote` and can now be used like this
|
|
|
|
|
|
|
|
|
|
See all containers
|
|
|
|
|
|
|
|
|
|
rclone lsd remote:
|
|
|
|
|
|
|
|
|
|
Make a new container
|
|
|
|
|
|
|
|
|
|
rclone mkdir remote:container
|
|
|
|
|
|
|
|
|
|
List the contents of a container
|
|
|
|
|
|
|
|
|
|
rclone ls remote:container
|
|
|
|
|
|
|
|
|
|
Sync `/home/local/directory` to the remote container, deleting any
|
|
|
|
|
excess files in the container.
|
|
|
|
|
|
2020-06-06 00:04:23 +08:00
|
|
|
|
rclone sync -i /home/local/directory remote:container
|
2014-03-29 06:34:13 +08:00
|
|
|
|
|
2019-03-28 03:12:24 +08:00
|
|
|
|
### Configuration from an OpenStack credentials file ###
|
2016-09-19 23:36:36 +08:00
|
|
|
|
|
2019-03-28 03:12:24 +08:00
|
|
|
|
An OpenStack credentials file typically looks something something
|
2016-09-19 23:36:36 +08:00
|
|
|
|
like this (without the comments)
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
export OS_AUTH_URL=https://a.provider.net/v2.0
|
|
|
|
|
export OS_TENANT_ID=ffffffffffffffffffffffffffffffff
|
|
|
|
|
export OS_TENANT_NAME="1234567890123456"
|
|
|
|
|
export OS_USERNAME="123abc567xy"
|
|
|
|
|
echo "Please enter your OpenStack Password: "
|
|
|
|
|
read -sr OS_PASSWORD_INPUT
|
|
|
|
|
export OS_PASSWORD=$OS_PASSWORD_INPUT
|
|
|
|
|
export OS_REGION_NAME="SBG1"
|
|
|
|
|
if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The config file needs to look something like this where `$OS_USERNAME`
|
|
|
|
|
represents the value of the `OS_USERNAME` variable - `123abc567xy` in
|
|
|
|
|
the example above.
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
[remote]
|
|
|
|
|
type = swift
|
|
|
|
|
user = $OS_USERNAME
|
|
|
|
|
key = $OS_PASSWORD
|
|
|
|
|
auth = $OS_AUTH_URL
|
|
|
|
|
tenant = $OS_TENANT_NAME
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Note that you may (or may not) need to set `region` too - try without first.
|
|
|
|
|
|
2017-08-11 04:38:45 +08:00
|
|
|
|
### Configuration from the environment ###
|
|
|
|
|
|
|
|
|
|
If you prefer you can configure rclone to use swift using a standard
|
|
|
|
|
set of OpenStack environment variables.
|
|
|
|
|
|
|
|
|
|
When you run through the config, make sure you choose `true` for
|
|
|
|
|
`env_auth` and leave everything else blank.
|
|
|
|
|
|
2017-10-28 14:03:51 +08:00
|
|
|
|
rclone will then set any empty config parameters from the environment
|
2017-08-11 04:38:45 +08:00
|
|
|
|
using standard OpenStack environment variables. There is [a list of
|
|
|
|
|
the
|
|
|
|
|
variables](https://godoc.org/github.com/ncw/swift#Connection.ApplyEnvironment)
|
|
|
|
|
in the docs for the swift library.
|
|
|
|
|
|
2017-12-08 05:30:58 +08:00
|
|
|
|
### Using an alternate authentication method ###
|
|
|
|
|
|
|
|
|
|
If your OpenStack installation uses a non-standard authentication method
|
|
|
|
|
that might not be yet supported by rclone or the underlying swift library,
|
|
|
|
|
you can authenticate externally (e.g. calling manually the `openstack`
|
|
|
|
|
commands to get a token). Then, you just need to pass the two
|
|
|
|
|
configuration variables ``auth_token`` and ``storage_url``.
|
|
|
|
|
If they are both provided, the other variables are ignored. rclone will
|
|
|
|
|
not try to authenticate but instead assume it is already authenticated
|
|
|
|
|
and use these two variables to access the OpenStack installation.
|
|
|
|
|
|
2017-08-11 04:38:45 +08:00
|
|
|
|
#### Using rclone without a config file ####
|
|
|
|
|
|
|
|
|
|
You can use rclone with swift without a config file, if desired, like
|
|
|
|
|
this:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
source openstack-credentials-file
|
|
|
|
|
export RCLONE_CONFIG_MYREMOTE_TYPE=swift
|
|
|
|
|
export RCLONE_CONFIG_MYREMOTE_ENV_AUTH=true
|
|
|
|
|
rclone lsd myremote:
|
|
|
|
|
```
|
|
|
|
|
|
2017-06-06 23:40:00 +08:00
|
|
|
|
### --fast-list ###
|
|
|
|
|
|
|
|
|
|
This remote supports `--fast-list` which allows you to use fewer
|
|
|
|
|
transactions in exchange for more memory. See the [rclone
|
|
|
|
|
docs](/docs/#fast-list) for more details.
|
|
|
|
|
|
2018-04-13 20:32:17 +08:00
|
|
|
|
### --update and --use-server-modtime ###
|
|
|
|
|
|
|
|
|
|
As noted below, the modified time is stored on metadata on the object. It is
|
|
|
|
|
used by default for all operations that require checking the time a file was
|
|
|
|
|
last updated. It allows rclone to treat the remote more like a true filesystem,
|
|
|
|
|
but it is inefficient because it requires an extra API call to retrieve the
|
|
|
|
|
metadata.
|
|
|
|
|
|
|
|
|
|
For many operations, the time the object was last uploaded to the remote is
|
|
|
|
|
sufficient to determine if it is "dirty". By using `--update` along with
|
|
|
|
|
`--use-server-modtime`, you can avoid the extra API call and simply upload
|
|
|
|
|
files whose local modtime is newer than the time it was last uploaded.
|
|
|
|
|
|
2020-05-22 19:22:52 +08:00
|
|
|
|
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/swift/swift.go then run make backenddocs" >}}
|
2018-10-02 03:48:54 +08:00
|
|
|
|
### Standard Options
|
|
|
|
|
|
2020-05-27 23:11:47 +08:00
|
|
|
|
Here are the standard options specific to swift (OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)).
|
2018-10-02 03:48:54 +08:00
|
|
|
|
|
|
|
|
|
#### --swift-env-auth
|
|
|
|
|
|
|
|
|
|
Get swift credentials from environment variables in standard OpenStack form.
|
|
|
|
|
|
|
|
|
|
- Config: env_auth
|
|
|
|
|
- Env Var: RCLONE_SWIFT_ENV_AUTH
|
|
|
|
|
- Type: bool
|
|
|
|
|
- Default: false
|
|
|
|
|
- Examples:
|
|
|
|
|
- "false"
|
|
|
|
|
- Enter swift credentials in the next step
|
|
|
|
|
- "true"
|
|
|
|
|
- Get swift credentials from environment vars. Leave other fields blank if using this.
|
|
|
|
|
|
|
|
|
|
#### --swift-user
|
|
|
|
|
|
|
|
|
|
User name to log in (OS_USERNAME).
|
|
|
|
|
|
|
|
|
|
- Config: user
|
|
|
|
|
- Env Var: RCLONE_SWIFT_USER
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
|
|
|
|
#### --swift-key
|
|
|
|
|
|
|
|
|
|
API key or password (OS_PASSWORD).
|
|
|
|
|
|
|
|
|
|
- Config: key
|
|
|
|
|
- Env Var: RCLONE_SWIFT_KEY
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
|
|
|
|
#### --swift-auth
|
|
|
|
|
|
|
|
|
|
Authentication URL for server (OS_AUTH_URL).
|
|
|
|
|
|
|
|
|
|
- Config: auth
|
|
|
|
|
- Env Var: RCLONE_SWIFT_AUTH
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
- Examples:
|
|
|
|
|
- "https://auth.api.rackspacecloud.com/v1.0"
|
|
|
|
|
- Rackspace US
|
|
|
|
|
- "https://lon.auth.api.rackspacecloud.com/v1.0"
|
|
|
|
|
- Rackspace UK
|
|
|
|
|
- "https://identity.api.rackspacecloud.com/v2.0"
|
|
|
|
|
- Rackspace v2
|
|
|
|
|
- "https://auth.storage.memset.com/v1.0"
|
|
|
|
|
- Memset Memstore UK
|
|
|
|
|
- "https://auth.storage.memset.com/v2.0"
|
|
|
|
|
- Memset Memstore UK v2
|
2020-01-25 01:43:00 +08:00
|
|
|
|
- "https://auth.cloud.ovh.net/v3"
|
2018-10-02 03:48:54 +08:00
|
|
|
|
- OVH
|
|
|
|
|
|
|
|
|
|
#### --swift-user-id
|
|
|
|
|
|
|
|
|
|
User ID to log in - optional - most swift systems use user and leave this blank (v3 auth) (OS_USER_ID).
|
|
|
|
|
|
|
|
|
|
- Config: user_id
|
|
|
|
|
- Env Var: RCLONE_SWIFT_USER_ID
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
|
|
|
|
#### --swift-domain
|
|
|
|
|
|
|
|
|
|
User domain - optional (v3 auth) (OS_USER_DOMAIN_NAME)
|
|
|
|
|
|
|
|
|
|
- Config: domain
|
|
|
|
|
- Env Var: RCLONE_SWIFT_DOMAIN
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
|
|
|
|
#### --swift-tenant
|
|
|
|
|
|
|
|
|
|
Tenant name - optional for v1 auth, this or tenant_id required otherwise (OS_TENANT_NAME or OS_PROJECT_NAME)
|
|
|
|
|
|
|
|
|
|
- Config: tenant
|
|
|
|
|
- Env Var: RCLONE_SWIFT_TENANT
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
|
|
|
|
#### --swift-tenant-id
|
|
|
|
|
|
|
|
|
|
Tenant ID - optional for v1 auth, this or tenant required otherwise (OS_TENANT_ID)
|
|
|
|
|
|
|
|
|
|
- Config: tenant_id
|
|
|
|
|
- Env Var: RCLONE_SWIFT_TENANT_ID
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
|
|
|
|
#### --swift-tenant-domain
|
|
|
|
|
|
|
|
|
|
Tenant domain - optional (v3 auth) (OS_PROJECT_DOMAIN_NAME)
|
|
|
|
|
|
|
|
|
|
- Config: tenant_domain
|
|
|
|
|
- Env Var: RCLONE_SWIFT_TENANT_DOMAIN
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
|
|
|
|
#### --swift-region
|
|
|
|
|
|
|
|
|
|
Region name - optional (OS_REGION_NAME)
|
|
|
|
|
|
|
|
|
|
- Config: region
|
|
|
|
|
- Env Var: RCLONE_SWIFT_REGION
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
|
|
|
|
#### --swift-storage-url
|
|
|
|
|
|
|
|
|
|
Storage URL - optional (OS_STORAGE_URL)
|
|
|
|
|
|
|
|
|
|
- Config: storage_url
|
|
|
|
|
- Env Var: RCLONE_SWIFT_STORAGE_URL
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
|
|
|
|
#### --swift-auth-token
|
|
|
|
|
|
|
|
|
|
Auth Token from alternate authentication - optional (OS_AUTH_TOKEN)
|
|
|
|
|
|
|
|
|
|
- Config: auth_token
|
|
|
|
|
- Env Var: RCLONE_SWIFT_AUTH_TOKEN
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
2019-02-09 18:42:57 +08:00
|
|
|
|
#### --swift-application-credential-id
|
|
|
|
|
|
|
|
|
|
Application Credential ID (OS_APPLICATION_CREDENTIAL_ID)
|
|
|
|
|
|
|
|
|
|
- Config: application_credential_id
|
|
|
|
|
- Env Var: RCLONE_SWIFT_APPLICATION_CREDENTIAL_ID
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
|
|
|
|
#### --swift-application-credential-name
|
|
|
|
|
|
|
|
|
|
Application Credential Name (OS_APPLICATION_CREDENTIAL_NAME)
|
|
|
|
|
|
|
|
|
|
- Config: application_credential_name
|
|
|
|
|
- Env Var: RCLONE_SWIFT_APPLICATION_CREDENTIAL_NAME
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
|
|
|
|
#### --swift-application-credential-secret
|
|
|
|
|
|
|
|
|
|
Application Credential Secret (OS_APPLICATION_CREDENTIAL_SECRET)
|
|
|
|
|
|
|
|
|
|
- Config: application_credential_secret
|
|
|
|
|
- Env Var: RCLONE_SWIFT_APPLICATION_CREDENTIAL_SECRET
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
2018-10-02 03:48:54 +08:00
|
|
|
|
#### --swift-auth-version
|
|
|
|
|
|
|
|
|
|
AuthVersion - optional - set to (1,2,3) if your auth URL has no version (ST_AUTH_VERSION)
|
|
|
|
|
|
|
|
|
|
- Config: auth_version
|
|
|
|
|
- Env Var: RCLONE_SWIFT_AUTH_VERSION
|
|
|
|
|
- Type: int
|
|
|
|
|
- Default: 0
|
|
|
|
|
|
|
|
|
|
#### --swift-endpoint-type
|
|
|
|
|
|
|
|
|
|
Endpoint type to choose from the service catalogue (OS_ENDPOINT_TYPE)
|
|
|
|
|
|
|
|
|
|
- Config: endpoint_type
|
|
|
|
|
- Env Var: RCLONE_SWIFT_ENDPOINT_TYPE
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: "public"
|
|
|
|
|
- Examples:
|
|
|
|
|
- "public"
|
|
|
|
|
- Public (default, choose this if not sure)
|
|
|
|
|
- "internal"
|
|
|
|
|
- Internal (use internal service net)
|
|
|
|
|
- "admin"
|
|
|
|
|
- Admin
|
|
|
|
|
|
|
|
|
|
#### --swift-storage-policy
|
|
|
|
|
|
|
|
|
|
The storage policy to use when creating a new container
|
|
|
|
|
|
|
|
|
|
This applies the specified storage policy when creating a new
|
|
|
|
|
container. The policy cannot be changed afterwards. The allowed
|
|
|
|
|
configuration values and their meaning depend on your Swift storage
|
|
|
|
|
provider.
|
|
|
|
|
|
|
|
|
|
- Config: storage_policy
|
|
|
|
|
- Env Var: RCLONE_SWIFT_STORAGE_POLICY
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
- Examples:
|
|
|
|
|
- ""
|
|
|
|
|
- Default
|
|
|
|
|
- "pcs"
|
|
|
|
|
- OVH Public Cloud Storage
|
|
|
|
|
- "pca"
|
|
|
|
|
- OVH Public Cloud Archive
|
|
|
|
|
|
|
|
|
|
### Advanced Options
|
|
|
|
|
|
2020-05-27 23:11:47 +08:00
|
|
|
|
Here are the advanced options specific to swift (OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)).
|
2018-10-02 03:48:54 +08:00
|
|
|
|
|
|
|
|
|
#### --swift-chunk-size
|
|
|
|
|
|
|
|
|
|
Above this size files will be chunked into a _segments container.
|
|
|
|
|
|
|
|
|
|
Above this size files will be chunked into a _segments container. The
|
|
|
|
|
default for this is 5GB which is its maximum value.
|
|
|
|
|
|
|
|
|
|
- Config: chunk_size
|
|
|
|
|
- Env Var: RCLONE_SWIFT_CHUNK_SIZE
|
|
|
|
|
- Type: SizeSuffix
|
|
|
|
|
- Default: 5G
|
|
|
|
|
|
2019-02-09 18:42:57 +08:00
|
|
|
|
#### --swift-no-chunk
|
|
|
|
|
|
|
|
|
|
Don't chunk files during streaming upload.
|
|
|
|
|
|
2020-10-14 05:49:58 +08:00
|
|
|
|
When doing streaming uploads (e.g. using rcat or mount) setting this
|
2019-02-09 18:42:57 +08:00
|
|
|
|
flag will cause the swift backend to not upload chunked files.
|
|
|
|
|
|
|
|
|
|
This will limit the maximum upload size to 5GB. However non chunked
|
|
|
|
|
files are easier to deal with and have an MD5SUM.
|
|
|
|
|
|
|
|
|
|
Rclone will still chunk files bigger than chunk_size when doing normal
|
|
|
|
|
copy operations.
|
|
|
|
|
|
|
|
|
|
- Config: no_chunk
|
|
|
|
|
- Env Var: RCLONE_SWIFT_NO_CHUNK
|
|
|
|
|
- Type: bool
|
|
|
|
|
- Default: false
|
|
|
|
|
|
2020-02-01 18:31:42 +08:00
|
|
|
|
#### --swift-encoding
|
|
|
|
|
|
|
|
|
|
This sets the encoding for the backend.
|
|
|
|
|
|
|
|
|
|
See: the [encoding section in the overview](/overview/#encoding) for more info.
|
|
|
|
|
|
|
|
|
|
- Config: encoding
|
|
|
|
|
- Env Var: RCLONE_SWIFT_ENCODING
|
|
|
|
|
- Type: MultiEncoder
|
|
|
|
|
- Default: Slash,InvalidUtf8
|
|
|
|
|
|
2020-05-22 19:22:52 +08:00
|
|
|
|
{{< rem autogenerated options stop >}}
|
2017-01-09 13:09:19 +08:00
|
|
|
|
|
2015-06-06 17:05:21 +08:00
|
|
|
|
### Modified time ###
|
2014-03-29 06:34:13 +08:00
|
|
|
|
|
|
|
|
|
The modified time is stored as metadata on the object as
|
|
|
|
|
`X-Object-Meta-Mtime` as floating point since the epoch accurate to 1
|
|
|
|
|
ns.
|
|
|
|
|
|
2020-05-19 19:02:44 +08:00
|
|
|
|
This is a de facto standard (used in the official python-swiftclient
|
2014-03-29 06:34:13 +08:00
|
|
|
|
amongst others) for storing the modification time for an object.
|
2016-03-17 01:39:44 +08:00
|
|
|
|
|
2019-09-21 18:47:59 +08:00
|
|
|
|
### Restricted filename characters
|
|
|
|
|
|
|
|
|
|
| Character | Value | Replacement |
|
|
|
|
|
| --------- |:-----:|:-----------:|
|
|
|
|
|
| NUL | 0x00 | ␀ |
|
|
|
|
|
| / | 0x2F | / |
|
|
|
|
|
|
|
|
|
|
Invalid UTF-8 bytes will also be [replaced](/overview/#invalid-utf8),
|
|
|
|
|
as they can't be used in JSON strings.
|
|
|
|
|
|
2016-03-17 01:39:44 +08:00
|
|
|
|
### Limitations ###
|
|
|
|
|
|
|
|
|
|
The Swift API doesn't return a correct MD5SUM for segmented files
|
|
|
|
|
(Dynamic or Static Large Objects) so rclone won't check or use the
|
|
|
|
|
MD5SUM for these.
|
2016-05-02 19:34:15 +08:00
|
|
|
|
|
2016-05-06 21:09:12 +08:00
|
|
|
|
### Troubleshooting ###
|
2016-05-02 19:34:15 +08:00
|
|
|
|
|
|
|
|
|
#### Rclone gives Failed to create file system for "remote:": Bad Request ####
|
|
|
|
|
|
|
|
|
|
Due to an oddity of the underlying swift library, it gives a "Bad
|
|
|
|
|
Request" error rather than a more sensible error when the
|
|
|
|
|
authentication fails for Swift.
|
|
|
|
|
|
|
|
|
|
So this most likely means your username / password is wrong. You can
|
|
|
|
|
investigate further with the `--dump-bodies` flag.
|
|
|
|
|
|
2016-09-19 23:36:36 +08:00
|
|
|
|
This may also be caused by specifying the region when you shouldn't
|
2020-10-14 05:49:58 +08:00
|
|
|
|
have (e.g. OVH).
|
2016-09-19 23:36:36 +08:00
|
|
|
|
|
2020-05-25 14:05:53 +08:00
|
|
|
|
#### Rclone gives Failed to create file system: Response didn't have storage url and auth token ####
|
2016-05-02 19:34:15 +08:00
|
|
|
|
|
|
|
|
|
This is most likely caused by forgetting to specify your tenant when
|
|
|
|
|
setting up a swift remote.
|