kDrive
At a glance
Section titled “At a glance”| Capability | Support |
|---|---|
| rclone support tier | Tier 2: Stable |
| Checksums | XXH3 |
| Modification times | Kept, to 1 s |
| Case-insensitive names | No |
| Duplicate names allowed | No |
| Server-side copy | Yes |
| Server-side move and rename | Yes |
| Folder move and rename | Yes, in one step |
| Free space reporting | Yes |
| Empty folders | Yes |
| Change notifications | No |
| Uploads of unknown size | No |
| Public links | Yes |
Setup notes
Section titled “Setup notes”In CloudMount you add this drive from the Add drive screen, and the wizard asks for the options listed under Options. The notes below come from rclone’s setup guide.
Modification times and hashes
Section titled “Modification times and hashes”kDrive allows modification times to be set on objects accurate to 1 second. These will be used to detect whether objects need syncing or not.
kDrive supports the XXH3 checksum hash, so you can use the --checksum
flag. XXH3 is only available for files uploaded as a single chunk:
files uploaded in chunks (by rclone when larger than
--kdrive-chunk-size, or by the kDrive apps which chunk files at their
own sizes) have a “nested” hash which can’t be compared with a plain
XXH3, and rclone reports no hash for those files.
Restricted filename characters
Section titled “Restricted filename characters”In addition to the default restricted characters set the following characters are also replaced:
| Character | Value | Replacement |
|---|---|---|
| LeftSpace | 0x20 | ␠ |
| RightSpace | 0x20 | ␠ |
Invalid UTF-8 bytes will also be replaced, as they can’t be used in JSON strings.
Overwriting files
Section titled “Overwriting files”When rclone overwrites an existing file, kDrive keeps the replaced content as a new version of the file. Old versions count against the drive quota, so repeatedly overwriting large files grows the storage usage. Manage old versions from the kDrive web app.
Uploading files of unknown size
Section titled “Uploading files of unknown size”kDrive can’t upload files of unknown size, so rclone rcat and
streaming uploads are not supported.
Deleting files
Section titled “Deleting files”Deleted files will be moved to the trash. Your subscription level
will determine how long items stay in the trash. rclone cleanup can
be used to empty the trash.
Root folder ID
Section titled “Root folder ID”You can set the root_folder_id for rclone. This is the directory
(identified by its numeric Folder ID) that rclone considers to be the
root of your kDrive drive.
Normally you will leave this blank and rclone will use your private directory. You can also use one of the convenience shortcuts:
private: your user private directory (default)common: the kDrive common directory, shared among users
Or the numeric Folder ID of any directory in your drive. The root of
the drive only contains the Private and Common documents folders,
so a numeric ID is needed to use any other directory as root. In order
to find the Folder ID, list the parent directory of the folder you
wish rclone to use with rclone lsf; the first column of the output is
the folder ID:
Example:
$ rclone lsf --dirs-only -Fip --csv remote:Documents456,Sub folder/789,Photos/So if the folder you want rclone to use is “Photos/”, then use the
returned id from rclone lsf command (ex. 789) as the
root_folder_id variable value in the config file.
Options
Section titled “Options”Standard options
Section titled “Standard options”The wizard asks for these when you add the drive.
client_id
Section titled “client_id”OAuth Client Id.
Leave blank normally.
Type: string
drive_id
Section titled “drive_id”ID of the kDrive to use.
When showing a folder on kdrive, you can find the drive_id here: https://ksuite.infomaniak.com/{account_id}/kdrive/app/drive/{drive_id}/files/…
Type: string
Advanced options
Section titled “Advanced options”The wizard shows these under Advanced options. Most drives work without changing any of them.
OAuth Access Token as a JSON blob.
Type: string
auth_url
Section titled “auth_url”Auth server URL.
Leave blank to use the provider defaults.
Type: string
token_url
Section titled “token_url”Token server url.
Leave blank to use the provider defaults.
Type: string
encoding
Section titled “encoding”The encoding for the backend.
See the encoding section in the overview for more info.
Type: Encoding · Default: Slash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot
root_folder_id
Section titled “root_folder_id”The folder to use as root.
You may use either one of the convenience shortcuts [private or common] or an explicit folder ID.
- private: your user private directory
- common: the kDrive common directory, shared among users
Type: string
chunk_size
Section titled “chunk_size”Files above this size are uploaded in chunks of this size.
The kDrive API accepts chunks between 1 MB and 1 GB, up to 10,000 chunks per file and a total file size of 1 TiB. The chunk size is raised automatically for very large files to stay within the 10,000 chunks limit.
Type: SizeSuffix · Default: 20Mi
upload_concurrency
Section titled “upload_concurrency”Concurrency for chunked uploads.
Type: int · Default: 4
endpoint
Section titled “endpoint”The API endpoint to use.
Leave blank normally. There is no reason to change the endpoint except for internal use or beta-testing.
Type: string
description
Section titled “description”Description of the remote.
Type: string