How do I restore an encrypted rclone mount to another machine?

What is the problem you are having with rclone?

I have a local machine and a vps. The local machine contains various rclone mounts (google drive, google team drive, dropbox etc).

I purchased a VPS to start moving some files from google drive (unencrypted) to dropbox (encrypted).

I installed rclone on the vps, and then proceeded to setup a new remote on dropbox (to test before the actual move). Everything went well and I was able to transfer a bunch of files from Google Drive to the new remote (Dropbox2-crypt).

The issue is that I want to mount the remote on my local machine. I copied the content of rclone.conf pertaining to "dropbox2" & "dropbox2-crypt" from the vps and added the entry to my rclone.conf on my local machine, however when I issue the command 'rclone lsd dropbox2:' I get the error "Failed to create file system for "dropbox2:": failed to configure dropbox: unexpected end of JSON input".

I then tried setting up the "dropbox2" mount manually on rclone and I was able to see the folder within. I then copied the content of rclone.conf pertaining to "dropbox2-crypt" from the vps and added the entry to my rclone.conf on my local machine however when I issue the command 'rclone lsd dropbox2-crypt:encrypt/' I am shown the folder with the encrypted name.

Run the command 'rclone version' and share the full output of the command.

Rclone version on VPS:

rclone v1.64.2
- os/version: ubuntu 23.04 (64 bit)
- os/kernel: 6.2.0-34-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.3
- go/linking: static
- go/tags: none

Rclone version on Local:

rclone v1.64.2
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 6.2.0-34-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.3
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Google Drive & Dropbox

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

VPS

[dropbox2]
type = dropbox
client_id = XXX
client_secret = XXX
token = XXX

[dropbox2-crypt]
type = crypt
remote = dropboxG2:encrypt
password = XXX
password2 = XXX
filename_encoding = base32768

[googleteam]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id =

Local

[dropbox1]
type = dropbox
client_id = XXX
client_secret = XXX
token = XXX

[dropbox1-crypt]
type = crypt
remote = dropboxG1:/encrypt
password = XXX
password2 = XXX
filename_encoding = base32768

[dropbox2]
type = dropbox
client_id = XXX
client_secret = XXX
token = XXX

[dropbox2-crypt]
type = crypt
remote = dropboxG2:encrypt
password = XXX
password2 = XXX
filename_encoding = base32768

[google]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
root_folder_id = XXX

[google2]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id =

[google2-crypt]
type = crypt
remote = google2:/encrypt
password = XXX
password2 = XXX
filename_encoding = base32768

[teamdrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX

There is no dropboxG1 configured in your local rclone.conf. Neither dropboxG2:

I guess you mess up some copy/paste - but it makes impossible to guess what is going on.

Correct this and then run your lsf with -vv flag and paste output here.

Thank you for your reply.

It seems that copying the line via terminal (putty) somehow did not include the entire line of the token. I downloaded the .conf file to windows and copied the entire line once again and this time it copied everything and it works now.

Yes this is common mistake. Whatever text editor you are using learn how to wrap long lines.

Or instead run:

cat rclone.conf

and copy from there. It will show you all long lines wrapped into terminal width.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.