2017-07-17 07:36:45 +02:00
|
|
|
|
---
|
|
|
|
|
title: "OpenDrive"
|
|
|
|
|
description: "Rclone docs for OpenDrive"
|
|
|
|
|
---
|
|
|
|
|
|
2020-05-22 13:22:52 +02:00
|
|
|
|
{{< icon "fa fa-file" >}} OpenDrive
|
2017-07-17 07:36:45 +02:00
|
|
|
|
------------------------------------
|
|
|
|
|
|
|
|
|
|
Paths are specified as `remote:path`
|
|
|
|
|
|
2020-10-13 23:49:58 +02:00
|
|
|
|
Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
|
2017-07-17 07:36:45 +02:00
|
|
|
|
|
|
|
|
|
Here is an example of how to make a remote called `remote`. First run:
|
|
|
|
|
|
|
|
|
|
rclone config
|
|
|
|
|
|
|
|
|
|
This will guide you through an interactive setup process:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
n) New remote
|
|
|
|
|
d) Delete remote
|
|
|
|
|
q) Quit config
|
|
|
|
|
e/n/d/q> n
|
|
|
|
|
name> remote
|
|
|
|
|
Type of storage to configure.
|
|
|
|
|
Choose a number from below, or type in your own value
|
2019-08-26 11:47:17 +02:00
|
|
|
|
[snip]
|
|
|
|
|
XX / OpenDrive
|
2017-07-17 07:36:45 +02:00
|
|
|
|
\ "opendrive"
|
2019-08-26 11:47:17 +02:00
|
|
|
|
[snip]
|
|
|
|
|
Storage> opendrive
|
2017-07-17 07:36:45 +02:00
|
|
|
|
Username
|
|
|
|
|
username>
|
|
|
|
|
Password
|
|
|
|
|
y) Yes type in my own password
|
|
|
|
|
g) Generate random password
|
|
|
|
|
y/g> y
|
|
|
|
|
Enter the password:
|
|
|
|
|
password:
|
|
|
|
|
Confirm the password:
|
|
|
|
|
password:
|
|
|
|
|
--------------------
|
|
|
|
|
[remote]
|
|
|
|
|
username =
|
|
|
|
|
password = *** ENCRYPTED ***
|
|
|
|
|
--------------------
|
|
|
|
|
y) Yes this is OK
|
|
|
|
|
e) Edit this remote
|
|
|
|
|
d) Delete this remote
|
|
|
|
|
y/e/d> y
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
List directories in top level of your OpenDrive
|
|
|
|
|
|
|
|
|
|
rclone lsd remote:
|
|
|
|
|
|
|
|
|
|
List all the files in your OpenDrive
|
|
|
|
|
|
|
|
|
|
rclone ls remote:
|
|
|
|
|
|
|
|
|
|
To copy a local directory to an OpenDrive directory called backup
|
|
|
|
|
|
|
|
|
|
rclone copy /home/source remote:backup
|
|
|
|
|
|
|
|
|
|
### Modified time and MD5SUMs ###
|
|
|
|
|
|
|
|
|
|
OpenDrive allows modification times to be set on objects accurate to 1
|
|
|
|
|
second. These will be used to detect whether objects need syncing or
|
|
|
|
|
not.
|
|
|
|
|
|
2018-11-02 13:14:30 +01:00
|
|
|
|
#### Restricted filename characters
|
|
|
|
|
|
|
|
|
|
| Character | Value | Replacement |
|
|
|
|
|
| --------- |:-----:|:-----------:|
|
|
|
|
|
| NUL | 0x00 | ␀ |
|
|
|
|
|
| / | 0x2F | / |
|
|
|
|
|
| " | 0x22 | " |
|
|
|
|
|
| * | 0x2A | * |
|
|
|
|
|
| : | 0x3A | : |
|
|
|
|
|
| < | 0x3C | < |
|
|
|
|
|
| > | 0x3E | > |
|
|
|
|
|
| ? | 0x3F | ? |
|
|
|
|
|
| \ | 0x5C | \ |
|
|
|
|
|
| \| | 0x7C | | |
|
|
|
|
|
|
|
|
|
|
File names can also not begin or end with the following characters.
|
|
|
|
|
These only get replaced if they are the first or last character in the name:
|
|
|
|
|
|
|
|
|
|
| Character | Value | Replacement |
|
|
|
|
|
| --------- |:-----:|:-----------:|
|
|
|
|
|
| SP | 0x20 | ␠ |
|
|
|
|
|
| HT | 0x09 | ␉ |
|
|
|
|
|
| LF | 0x0A | ␊ |
|
|
|
|
|
| VT | 0x0B | ␋ |
|
|
|
|
|
| CR | 0x0D | ␍ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Invalid UTF-8 bytes will also be [replaced](/overview/#invalid-utf8),
|
|
|
|
|
as they can't be used in JSON strings.
|
|
|
|
|
|
2020-05-22 13:22:52 +02:00
|
|
|
|
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/opendrive/opendrive.go then run make backenddocs" >}}
|
2018-10-01 21:48:54 +02:00
|
|
|
|
### Standard Options
|
|
|
|
|
|
|
|
|
|
Here are the standard options specific to opendrive (OpenDrive).
|
|
|
|
|
|
|
|
|
|
#### --opendrive-username
|
|
|
|
|
|
|
|
|
|
Username
|
|
|
|
|
|
|
|
|
|
- Config: username
|
|
|
|
|
- Env Var: RCLONE_OPENDRIVE_USERNAME
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
|
|
|
|
#### --opendrive-password
|
|
|
|
|
|
|
|
|
|
Password.
|
|
|
|
|
|
2020-09-02 17:59:04 +02:00
|
|
|
|
**NB** Input to this must be obscured - see [rclone obscure](/commands/rclone_obscure/).
|
|
|
|
|
|
2018-10-01 21:48:54 +02:00
|
|
|
|
- Config: password
|
|
|
|
|
- Env Var: RCLONE_OPENDRIVE_PASSWORD
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: ""
|
|
|
|
|
|
2020-02-01 11:31:42 +01:00
|
|
|
|
### Advanced Options
|
|
|
|
|
|
|
|
|
|
Here are the advanced options specific to opendrive (OpenDrive).
|
|
|
|
|
|
|
|
|
|
#### --opendrive-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_OPENDRIVE_ENCODING
|
|
|
|
|
- Type: MultiEncoder
|
|
|
|
|
- Default: Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,LeftSpace,LeftCrLfHtVt,RightSpace,RightCrLfHtVt,InvalidUtf8,Dot
|
|
|
|
|
|
|
|
|
|
#### --opendrive-chunk-size
|
|
|
|
|
|
|
|
|
|
Files will be uploaded in chunks this size.
|
|
|
|
|
|
|
|
|
|
Note that these chunks are buffered in memory so increasing them will
|
|
|
|
|
increase memory use.
|
|
|
|
|
|
|
|
|
|
- Config: chunk_size
|
|
|
|
|
- Env Var: RCLONE_OPENDRIVE_CHUNK_SIZE
|
|
|
|
|
- Type: SizeSuffix
|
|
|
|
|
- Default: 10M
|
|
|
|
|
|
2020-05-22 13:22:52 +02:00
|
|
|
|
{{< rem autogenerated options stop >}}
|
2017-07-17 07:36:45 +02:00
|
|
|
|
|
|
|
|
|
### Limitations ###
|
|
|
|
|
|
|
|
|
|
Note that OpenDrive is case insensitive so you can't have a
|
|
|
|
|
file called "Hello.doc" and one called "hello.doc".
|
|
|
|
|
|
|
|
|
|
There are quite a few characters that can't be in OpenDrive file
|
|
|
|
|
names. These can't occur on Windows platforms, but on non-Windows
|
|
|
|
|
platforms they are common. Rclone will map these names to and from an
|
|
|
|
|
identical looking unicode equivalent. For example if a file has a `?`
|
|
|
|
|
in it will be mapped to `?` instead.
|
|
|
|
|
|