2017-09-19 23:09:43 +08:00
|
|
|
|
---
|
|
|
|
|
title: "pCloud"
|
|
|
|
|
description: "Rclone docs for pCloud"
|
2022-11-18 01:56:24 +08:00
|
|
|
|
versionIntroduced: "v1.39"
|
2017-09-19 23:09:43 +08:00
|
|
|
|
---
|
|
|
|
|
|
2021-07-21 02:45:41 +08:00
|
|
|
|
# {{< icon "fa fa-cloud" >}} pCloud
|
2017-09-19 23:09:43 +08:00
|
|
|
|
|
|
|
|
|
Paths are specified as `remote:path`
|
|
|
|
|
|
2020-10-14 05:49:58 +08:00
|
|
|
|
Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
|
2017-09-19 23:09:43 +08:00
|
|
|
|
|
2021-10-14 21:40:18 +08:00
|
|
|
|
## Configuration
|
|
|
|
|
|
2017-09-19 23:09:43 +08:00
|
|
|
|
The initial setup for pCloud involves getting a token from pCloud which you
|
|
|
|
|
need to do in your browser. `rclone config` walks you through it.
|
|
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
|
|
```
|
2021-11-02 04:34:46 +08:00
|
|
|
|
No remotes found, make a new one?
|
2017-09-19 23:09:43 +08:00
|
|
|
|
n) New remote
|
|
|
|
|
s) Set configuration password
|
|
|
|
|
q) Quit config
|
|
|
|
|
n/s/q> n
|
|
|
|
|
name> remote
|
|
|
|
|
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]
|
|
|
|
|
XX / Pcloud
|
2017-09-19 23:09:43 +08:00
|
|
|
|
\ "pcloud"
|
2019-08-26 17:47:17 +08:00
|
|
|
|
[snip]
|
2017-09-19 23:09:43 +08:00
|
|
|
|
Storage> pcloud
|
|
|
|
|
Pcloud App Client Id - leave blank normally.
|
|
|
|
|
client_id>
|
|
|
|
|
Pcloud App Client Secret - leave blank normally.
|
|
|
|
|
client_secret>
|
|
|
|
|
Remote config
|
2022-12-08 03:44:28 +08:00
|
|
|
|
Use web browser to automatically authenticate rclone with remote?
|
|
|
|
|
* Say Y if the machine running rclone has a web browser you can use
|
|
|
|
|
* Say N if running rclone on a (remote) machine without web browser access
|
|
|
|
|
If not sure try Y. If Y failed, try N.
|
2017-09-19 23:09:43 +08:00
|
|
|
|
y) Yes
|
|
|
|
|
n) No
|
|
|
|
|
y/n> y
|
|
|
|
|
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
|
|
|
|
|
Log in and authorize rclone for access
|
|
|
|
|
Waiting for code...
|
|
|
|
|
Got code
|
|
|
|
|
--------------------
|
|
|
|
|
[remote]
|
|
|
|
|
client_id =
|
|
|
|
|
client_secret =
|
|
|
|
|
token = {"access_token":"XXX","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}
|
|
|
|
|
--------------------
|
|
|
|
|
y) Yes this is OK
|
|
|
|
|
e) Edit this remote
|
|
|
|
|
d) Delete this remote
|
|
|
|
|
y/e/d> y
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
See the [remote setup docs](/remote_setup/) for how to set it up on a
|
|
|
|
|
machine with no Internet browser available.
|
|
|
|
|
|
|
|
|
|
Note that rclone runs a webserver on your local machine to collect the
|
|
|
|
|
token as returned from pCloud. This only runs from the moment it opens
|
|
|
|
|
your browser to the moment you get back the verification code. This
|
|
|
|
|
is on `http://127.0.0.1:53682/` and this it may require you to unblock
|
|
|
|
|
it temporarily if you are running a host firewall.
|
|
|
|
|
|
|
|
|
|
Once configured you can then use `rclone` like this,
|
|
|
|
|
|
|
|
|
|
List directories in top level of your pCloud
|
|
|
|
|
|
|
|
|
|
rclone lsd remote:
|
|
|
|
|
|
|
|
|
|
List all the files in your pCloud
|
|
|
|
|
|
|
|
|
|
rclone ls remote:
|
|
|
|
|
|
2021-11-22 02:16:19 +08:00
|
|
|
|
To copy a local directory to a pCloud directory called backup
|
2017-09-19 23:09:43 +08:00
|
|
|
|
|
|
|
|
|
rclone copy /home/source remote:backup
|
|
|
|
|
|
2023-11-18 20:36:46 +08:00
|
|
|
|
### Modification times and hashes
|
2017-09-19 23:09:43 +08:00
|
|
|
|
|
|
|
|
|
pCloud allows modification times to be set on objects accurate to 1
|
|
|
|
|
second. These will be used to detect whether objects need syncing or
|
|
|
|
|
not. In order to set a Modification time pCloud requires the object
|
|
|
|
|
be re-uploaded.
|
|
|
|
|
|
2021-08-14 03:17:52 +08:00
|
|
|
|
pCloud supports MD5 and SHA1 hashes in the US region, and SHA1 and SHA256
|
|
|
|
|
hashes in the EU region, so you can use the `--checksum` flag.
|
2017-09-19 23:09:43 +08:00
|
|
|
|
|
2021-10-14 21:40:18 +08:00
|
|
|
|
### Restricted filename characters
|
2018-11-02 20:15:17 +08:00
|
|
|
|
|
|
|
|
|
In addition to the [default restricted characters set](/overview/#restricted-characters)
|
|
|
|
|
the following characters are also replaced:
|
|
|
|
|
|
|
|
|
|
| Character | Value | Replacement |
|
|
|
|
|
| --------- |:-----:|:-----------:|
|
|
|
|
|
| \ | 0x5C | \ |
|
|
|
|
|
|
|
|
|
|
Invalid UTF-8 bytes will also be [replaced](/overview/#invalid-utf8),
|
|
|
|
|
as they can't be used in JSON strings.
|
|
|
|
|
|
2021-10-14 21:40:18 +08:00
|
|
|
|
### Deleting files
|
2017-09-19 23:09:43 +08:00
|
|
|
|
|
|
|
|
|
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.
|
2018-10-02 01:36:15 +08:00
|
|
|
|
|
2022-06-15 22:44:13 +08:00
|
|
|
|
### Emptying the trash
|
|
|
|
|
|
|
|
|
|
Due to an API limitation, the `rclone cleanup` command will only work if you
|
|
|
|
|
set your username and password in the advanced options for this backend.
|
|
|
|
|
Since we generally want to avoid storing user passwords in the rclone config
|
|
|
|
|
file, we advise you to only set this up if you need the `rclone cleanup` command to work.
|
|
|
|
|
|
2021-10-14 21:40:18 +08:00
|
|
|
|
### Root folder ID
|
2020-04-20 22:23:46 +08:00
|
|
|
|
|
|
|
|
|
You can set the `root_folder_id` for rclone. This is the directory
|
|
|
|
|
(identified by its `Folder ID`) that rclone considers to be the root
|
|
|
|
|
of your pCloud drive.
|
|
|
|
|
|
|
|
|
|
Normally you will leave this blank and rclone will determine the
|
|
|
|
|
correct root to use itself.
|
|
|
|
|
|
|
|
|
|
However you can set this to restrict rclone to a specific folder
|
|
|
|
|
hierarchy.
|
|
|
|
|
|
|
|
|
|
In order to do this you will have to find the `Folder ID` of the
|
|
|
|
|
directory you wish rclone to display. This will be the `folder` field
|
|
|
|
|
of the URL when you open the relevant folder in the pCloud web
|
|
|
|
|
interface.
|
|
|
|
|
|
|
|
|
|
So if the folder you want rclone to use has a URL which looks like
|
|
|
|
|
`https://my.pcloud.com/#page=filemanager&folder=5xxxxxxxx8&tpl=foldergrid`
|
|
|
|
|
in the browser, then you use `5xxxxxxxx8` as
|
|
|
|
|
the `root_folder_id` in the config.
|
|
|
|
|
|
2020-05-22 19:22:52 +08:00
|
|
|
|
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/pcloud/pcloud.go then run make backenddocs" >}}
|
2021-11-01 23:42:05 +08:00
|
|
|
|
### Standard options
|
2018-10-02 03:48:54 +08:00
|
|
|
|
|
2022-07-10 01:08:20 +08:00
|
|
|
|
Here are the Standard options specific to pcloud (Pcloud).
|
2018-10-02 03:48:54 +08:00
|
|
|
|
|
|
|
|
|
#### --pcloud-client-id
|
|
|
|
|
|
2021-11-01 23:42:05 +08:00
|
|
|
|
OAuth Client Id.
|
|
|
|
|
|
2018-10-02 03:48:54 +08:00
|
|
|
|
Leave blank normally.
|
|
|
|
|
|
2022-03-18 20:29:54 +08:00
|
|
|
|
Properties:
|
|
|
|
|
|
2018-10-02 03:48:54 +08:00
|
|
|
|
- Config: client_id
|
|
|
|
|
- Env Var: RCLONE_PCLOUD_CLIENT_ID
|
|
|
|
|
- Type: string
|
2022-03-18 20:29:54 +08:00
|
|
|
|
- Required: false
|
2018-10-02 03:48:54 +08:00
|
|
|
|
|
|
|
|
|
#### --pcloud-client-secret
|
|
|
|
|
|
2021-11-01 23:42:05 +08:00
|
|
|
|
OAuth Client Secret.
|
|
|
|
|
|
2018-10-02 03:48:54 +08:00
|
|
|
|
Leave blank normally.
|
|
|
|
|
|
2022-03-18 20:29:54 +08:00
|
|
|
|
Properties:
|
|
|
|
|
|
2018-10-02 03:48:54 +08:00
|
|
|
|
- Config: client_secret
|
|
|
|
|
- Env Var: RCLONE_PCLOUD_CLIENT_SECRET
|
|
|
|
|
- Type: string
|
2022-03-18 20:29:54 +08:00
|
|
|
|
- Required: false
|
2018-10-02 03:48:54 +08:00
|
|
|
|
|
2021-11-01 23:42:05 +08:00
|
|
|
|
### Advanced options
|
2020-02-01 18:31:42 +08:00
|
|
|
|
|
2022-07-10 01:08:20 +08:00
|
|
|
|
Here are the Advanced options specific to pcloud (Pcloud).
|
2020-02-01 18:31:42 +08:00
|
|
|
|
|
2020-09-02 23:59:04 +08:00
|
|
|
|
#### --pcloud-token
|
|
|
|
|
|
|
|
|
|
OAuth Access Token as a JSON blob.
|
|
|
|
|
|
2022-03-18 20:29:54 +08:00
|
|
|
|
Properties:
|
|
|
|
|
|
2020-09-02 23:59:04 +08:00
|
|
|
|
- Config: token
|
|
|
|
|
- Env Var: RCLONE_PCLOUD_TOKEN
|
|
|
|
|
- Type: string
|
2022-03-18 20:29:54 +08:00
|
|
|
|
- Required: false
|
2020-09-02 23:59:04 +08:00
|
|
|
|
|
|
|
|
|
#### --pcloud-auth-url
|
|
|
|
|
|
|
|
|
|
Auth server URL.
|
2021-11-01 23:42:05 +08:00
|
|
|
|
|
2020-09-02 23:59:04 +08:00
|
|
|
|
Leave blank to use the provider defaults.
|
|
|
|
|
|
2022-03-18 20:29:54 +08:00
|
|
|
|
Properties:
|
|
|
|
|
|
2020-09-02 23:59:04 +08:00
|
|
|
|
- Config: auth_url
|
|
|
|
|
- Env Var: RCLONE_PCLOUD_AUTH_URL
|
|
|
|
|
- Type: string
|
2022-03-18 20:29:54 +08:00
|
|
|
|
- Required: false
|
2020-09-02 23:59:04 +08:00
|
|
|
|
|
|
|
|
|
#### --pcloud-token-url
|
|
|
|
|
|
|
|
|
|
Token server url.
|
2021-11-01 23:42:05 +08:00
|
|
|
|
|
2020-09-02 23:59:04 +08:00
|
|
|
|
Leave blank to use the provider defaults.
|
|
|
|
|
|
2022-03-18 20:29:54 +08:00
|
|
|
|
Properties:
|
|
|
|
|
|
2020-09-02 23:59:04 +08:00
|
|
|
|
- Config: token_url
|
|
|
|
|
- Env Var: RCLONE_PCLOUD_TOKEN_URL
|
|
|
|
|
- Type: string
|
2022-03-18 20:29:54 +08:00
|
|
|
|
- Required: false
|
2020-09-02 23:59:04 +08:00
|
|
|
|
|
2020-02-01 18:31:42 +08:00
|
|
|
|
#### --pcloud-encoding
|
|
|
|
|
|
2022-03-18 20:29:54 +08:00
|
|
|
|
The encoding for the backend.
|
2020-02-01 18:31:42 +08:00
|
|
|
|
|
2021-11-01 23:42:05 +08:00
|
|
|
|
See the [encoding section in the overview](/overview/#encoding) for more info.
|
2020-02-01 18:31:42 +08:00
|
|
|
|
|
2022-03-18 20:29:54 +08:00
|
|
|
|
Properties:
|
|
|
|
|
|
2020-02-01 18:31:42 +08:00
|
|
|
|
- Config: encoding
|
|
|
|
|
- Env Var: RCLONE_PCLOUD_ENCODING
|
2023-11-26 23:59:12 +08:00
|
|
|
|
- Type: Encoding
|
2020-02-01 18:31:42 +08:00
|
|
|
|
- Default: Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
|
|
|
|
|
|
2020-04-20 22:23:46 +08:00
|
|
|
|
#### --pcloud-root-folder-id
|
|
|
|
|
|
|
|
|
|
Fill in for rclone to use a non root folder as its starting point.
|
|
|
|
|
|
2022-03-18 20:29:54 +08:00
|
|
|
|
Properties:
|
|
|
|
|
|
2020-04-20 22:23:46 +08:00
|
|
|
|
- Config: root_folder_id
|
|
|
|
|
- Env Var: RCLONE_PCLOUD_ROOT_FOLDER_ID
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: "d0"
|
|
|
|
|
|
2020-09-02 23:59:04 +08:00
|
|
|
|
#### --pcloud-hostname
|
|
|
|
|
|
|
|
|
|
Hostname to connect to.
|
|
|
|
|
|
|
|
|
|
This is normally set when rclone initially does the oauth connection,
|
|
|
|
|
however you will need to set it by hand if you are using remote config
|
|
|
|
|
with rclone authorize.
|
|
|
|
|
|
|
|
|
|
|
2022-03-18 20:29:54 +08:00
|
|
|
|
Properties:
|
|
|
|
|
|
2020-09-02 23:59:04 +08:00
|
|
|
|
- Config: hostname
|
|
|
|
|
- Env Var: RCLONE_PCLOUD_HOSTNAME
|
|
|
|
|
- Type: string
|
|
|
|
|
- Default: "api.pcloud.com"
|
|
|
|
|
- Examples:
|
|
|
|
|
- "api.pcloud.com"
|
|
|
|
|
- Original/US region
|
|
|
|
|
- "eapi.pcloud.com"
|
|
|
|
|
- EU region
|
|
|
|
|
|
2022-06-15 22:44:13 +08:00
|
|
|
|
#### --pcloud-username
|
|
|
|
|
|
|
|
|
|
Your pcloud username.
|
|
|
|
|
|
|
|
|
|
This is only required when you want to use the cleanup command. Due to a bug
|
|
|
|
|
in the pcloud API the required API does not support OAuth authentication so
|
|
|
|
|
we have to rely on user password authentication for it.
|
|
|
|
|
|
|
|
|
|
Properties:
|
|
|
|
|
|
|
|
|
|
- Config: username
|
|
|
|
|
- Env Var: RCLONE_PCLOUD_USERNAME
|
|
|
|
|
- Type: string
|
|
|
|
|
- Required: false
|
|
|
|
|
|
|
|
|
|
#### --pcloud-password
|
|
|
|
|
|
|
|
|
|
Your pcloud password.
|
|
|
|
|
|
|
|
|
|
**NB** Input to this must be obscured - see [rclone obscure](/commands/rclone_obscure/).
|
|
|
|
|
|
|
|
|
|
Properties:
|
|
|
|
|
|
|
|
|
|
- Config: password
|
|
|
|
|
- Env Var: RCLONE_PCLOUD_PASSWORD
|
|
|
|
|
- Type: string
|
|
|
|
|
- Required: false
|
|
|
|
|
|
2024-03-10 19:22:43 +08:00
|
|
|
|
#### --pcloud-description
|
|
|
|
|
|
2024-06-14 23:04:51 +08:00
|
|
|
|
Description of the remote.
|
2024-03-10 19:22:43 +08:00
|
|
|
|
|
|
|
|
|
Properties:
|
|
|
|
|
|
|
|
|
|
- Config: description
|
|
|
|
|
- Env Var: RCLONE_PCLOUD_DESCRIPTION
|
|
|
|
|
- Type: string
|
|
|
|
|
- Required: false
|
|
|
|
|
|
2020-05-22 19:22:52 +08:00
|
|
|
|
{{< rem autogenerated options stop >}}
|