
To set up Rclone with Proton Drive, start by creating a new Rclone remote for your Proton Drive account. This involves entering your Proton Drive account details into the Rclone configuration file.
Rclone supports multiple Proton Drive accounts, so you can set up separate remotes for each account if needed. This makes it easy to manage multiple Proton Drive accounts within Rclone.
For efficient migration, use the Rclone sync command to transfer files from your source to your Proton Drive account. This command can be run in the background to minimize downtime.
Automation can be achieved by scheduling Rclone commands to run at regular intervals using a scheduler like cron. This ensures your files are always up to date and synchronized with your Proton Drive account.
Setup and Installation
To set up Rclone with Proton Drive, start by downloading Rclone from the official website.
Choose the correct download link based on your computer's architecture, and extract the contents of the zip archive to a folder named "rclone".
Run the ".\rclone.exe config" command from the terminal in the extracted folder to initiate the configuration process.
Step 1: Install and Set Up

To install and set up Rclone, start by downloading it from the official website. You can find the download link at https://rclone.org/.
Choose the appropriate download link according to your architecture. This will ensure you get the right version for your computer.
Extract the contents of the zip archive and rename the extracted folder to rclone. This will make it easier to navigate and run Rclone later on.
To configure Rclone, open a terminal from the extracted folder and run the ".\rclone.exe config" command. This will initiate the configuration process.
You'll be asked to follow the setup instructions and answer the questions as prompted. Be sure to check that the connection to Proton Drive is working after configuring Rclone.
To synchronize your Cloud Drive with a local folder, use the following steps:
- Download Rclone from the official website: https://rclone.org/
- Choose the appropriate download link according to your architecture
- Extract the contents of the zip archive and rename the extracted folder to rclone
- Open a terminal from the extracted folder and run the ".\rclone.exe config" command
- Synchronize the Cloud Drive with the local folder C:\Users\user\Desktop\PROTON\:
Username
To set up your ProtonDrive account, you'll need to enter a username. The username is a required field and can be entered in the config or set as an environment variable.

The username should be a string, which is a series of characters. This is the most common type of data for a username.
You can enter your username in the config, which is the default setting. Alternatively, you can set it as an environment variable, specifically RCLONE_PROTONDRIVE_USERNAME.
Here's a quick rundown of the options:
- Config: enter your username directly in the config
- Env Var: set your username as an environment variable, RCLONE_PROTONDRIVE_USERNAME
Make sure to enter a valid string for your username, as this is a required field.
Enable Caching
Enabling caching can significantly improve the performance of your ProtonDrive setup.
To enable caching, you can use the "--protondrive-enable-caching" flag. This flag caches the files and folders metadata to reduce API calls.
However, if you're mounting ProtonDrive as a VFS, you should disable this feature, as the current implementation doesn't update or clear the cache when there are external changes.
You can configure caching using the "enable_caching" option, which is set to "true" by default. This means that caching is enabled unless you explicitly disable it.
Here are the details about the caching configuration:
- Config: enable_caching
- Env Var: RCLONE_PROTONDRIVE_ENABLE_CACHING
- Type: bool
- Default: true
Remember to adjust the caching settings according to your specific setup and needs.
Efficient Migration

To ensure a smooth migration process, it's essential to understand the different migration types. There are three primary types: in-place, online, and offline.
In-place migration allows for the least downtime, but it requires specific hardware and software configurations.
Online migration can be performed while the system is running, making it a good choice for production environments.
Offline migration, on the other hand, requires a complete shutdown of the system, which can be beneficial for systems with complex configurations.
The migration process typically involves several steps, including data transfer, system configuration, and verification.
Data transfer can be performed using various methods, including network copy and disk-to-disk replication.
System configuration involves updating the system's settings and parameters to match the new environment.
Verification is crucial to ensure that the migration was successful and the system is functioning as expected.
A well-planned migration process can help minimize downtime and ensure a seamless transition to the new environment.
App Version
The app version is a crucial piece of information that's required with every API request. It indicates the client that's currently performing the request, and it's used to identify the version of the app that's making the request.
You can specify the app version using the "app_version" config option, or by setting the "RCLONE_PROTONDRIVE_APP_VERSION" environment variable. The app version string should be in the format of a string.
Here's a summary of the app version options:
- Config: app_version
- Env Var: RCLONE_PROTONDRIVE_APP_VERSION
- Type: string
- Default: "[email protected]+rclone"
Encoding

Encoding is a crucial setting for protondrive. The default encoding is Slash,LeftSpace,RightSpace,InvalidUtf8,Dot.
You can configure the encoding in the config file or by setting the RCLONE_PROTONDRIVE_ENCODING environment variable. This setting determines how protondrive handles special characters in file names.
Here's a breakdown of the encoding options:
- Config: encoding
- Env Var: RCLONE_PROTONDRIVE_ENCODING
- Type: Encoding
- Default: Slash,LeftSpace,RightSpace,InvalidUtf8,Dot
This setting affects how protondrive handles file names with special characters, so it's essential to choose the right encoding for your needs.
Utilisation
Now that we have our cloud storage set up, let's dive into the fun part – using Rclone.
You can synchronize your Cloud Drive with your local folder C:\Users\user\Desktop\PROTON\ by using Rclone.
To keep your Rclone up to date, you can check for the latest version and update it if necessary.
Rclone offers a range of options, which you can view by checking the available settings.
To get started with synchronizing your Cloud Drive, you'll need to configure the settings in Rclone.
Here are some key Rclone options:
- Synchronizing the Cloud Drive with a local folder
- Checking for updates and updating Rclone
- Viewing available Rclone settings
Authentication and Security
To set up Rclone with Proton Drive, you'll need to create an account on the Proton Drive website if you haven't already.
Proton Drive uses a secure authentication process, which includes two-factor authentication (2FA) to add an extra layer of security to your account.
Rclone supports various authentication methods, including OAuth, which allows you to authenticate with Proton Drive without sharing your password.
Salted-Key-Pass
The salted-key-pass is a crucial aspect of secure data storage.
You'll need to provide a password for ProtonDrive, which is a required field. The password can be set using the `--protondrive-password` option.
The password can also be set as an environment variable, specifically `RCLONE_PROTONDRIVE_PASSWORD`. This is a string value that must be provided.
In some cases, you may need to provide a client-salted-key-pass, which is not required by default. This can be set using the `--protondrive-client-salted-key-pass` option.
2fa
Two-factor authentication (2FA) is a crucial aspect of securing your online accounts, including your Proton Drive account. You can enable 2FA on your Proton Drive account to add an extra layer of security.
The 2FA code can be provided using the --protondrive-2fa option, which can also be given a value with an equals sign, like this: --protondrive-2fa=000000.
To use the --protondrive-2fa option, you can specify the 2FA code of your Proton Drive account if it's set up with two-factor authentication.
Here are the details of the --protondrive-2fa option:
- Config: 2fa
- Env Var: RCLONE_PROTONDRIVE_2FA
- Type: string
- Required: false
Mailbox Password
Mailbox Password is a configuration option that allows you to set a password for your ProtonDrive mailbox.
You can configure the mailbox password through the Config: mailbox_password setting.
The mailbox password can also be set through an environment variable called RCLONE_PROTONDRIVE_MAILBOX_PASSWORD.
The type of the mailbox password is string.
Here are the details of the mailbox password configuration:
- Config: mailbox_password
- Env Var: RCLONE_PROTONDRIVE_MAILBOX_PASSWORD
- Type: string
- Required: false
-Client-Access-Token
The client-access-token is a crucial component of authentication and security. It's used to grant access to certain systems or services.
You can configure the client-access-token through the config option, specifically the client_access_token field. This field is optional, meaning you don't have to set it if you don't need to.
If you do need to use the client-access-token, you can also set it as an environment variable called RCLONE_PROTONDRIVE_CLIENT_ACCESS_TOKEN.
The client-access-token is a string value, so make sure to enter it correctly to avoid any issues.
Client Refresh Token

The Client Refresh Token is a crucial part of the authentication process.
You can configure the client refresh token in the configuration settings, specifically in the client_refresh_token field.
This field is optional, so you don't have to set it if you don't need to.
If you do need to set it, you can also use an environment variable, RCLONE_PROTONDRIVE_CLIENT_REFRESH_TOKEN, to store the value.
The client refresh token is a string, so make sure you enter it as a string when configuring it.
Here's a summary of the client refresh token settings:
- Config: client_refresh_token
- Env Var: RCLONE_PROTONDRIVE_CLIENT_REFRESH_TOKEN
- Type: string
- Required: false
Automation and Scheduling
Automation and Scheduling is a crucial step in setting up Rclone Proton Drive, as it ensures seamless synchronization across all devices.
To automate the bisynchronization process, you'll need to use a batch script that will be run by the Windows Task Scheduler.
Manually running the .\rclone.exe bisync C:\RCLONE\ proton: --force command on each computer every time the pwd.kdbx file is modified is inefficient and prone to errors.
This batch script will automate the execution of the command, saving you time and effort.
The architecture is now configured and functional, but manual execution of the command is required until automation is set up.
You can create this batch script to run automatically at specific intervals, ensuring your data remains up-to-date across all devices.
Frequently Asked Questions
Is Proton Drive secure?
Proton Drive uses end-to-end encryption, ensuring that only you have access to your files and folders. Your data is protected with the highest level of security, guaranteed
Sources
- https://rclone.org/protondrive/
- http://std.rocks/other_sync_file.html
- https://unix.stackexchange.com/questions/760382/a-fast-way-to-sync-local-files-with-proton-drive-here-exploring-rclone
- https://www.cloudslinker.com/projects/google-photos-to-proton-drive-move-images/
- http://std.rocks/fr/other_sync_file.html
Featured Images: pexels.com