Using sync with Crypt to Encrypt Google Shared Drives

What is the problem you are having with rclone?

Tring to sync unencrypted drive to encrypted drive

Well, I am doing this as follows.

Using sync to copy one unencrypted drive to another unencrypted drive(working fine)

Using sync to encrypt the one drive to another. instead of uploading, it's making a local folder with the encrypted files. I know that it has to download first to encrypt them but, it should encrypt and then upload it to another drive and delete the local files.

My question is How can i use sync with encrypt in a way that drive one (unencrypted) sync's to drive two (encrypted).

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

rclone v1.58.1

  • os/version: Microsoft Windows Server 2019 Datacenter 1809 (64 bit)
  • os/kernel: 10.0.17763.2803 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.17.9
  • go/linking: dynamic
  • go/tags: cmount

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

Google Drive (Shared Drives instead of MyDrive)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone sync simple-program-main: simple-program-encrypt:

The rclone config contents with secrets removed.

[simple-program-sync]
type = drive
client_id = 
client_secret = 
scope = drive
root_folder_id = 
service_account_file = 1.json
team_drive = 
server_side_across_configs = true

[simple-program-main]
type = drive
client_id = 
client_secret = 
scope = drive
root_folder_id = 
service_account_file = 1.json
team_drive = 
server_side_across_configs = true

[simple-program-encrypted]
type = drive
client_id = 
client_secret = 
scope = drive
root_folder_id = 
service_account_file = 2.json
team_drive = 
server_side_across_configs = true

[simple-program-encrypt]
type = crypt
remote = simple-program-encrypted
filename_encryption = off
directory_name_encryption = false
password = 
password2 = 

A log from the command with the -vv flag

https://gist.github.com/PBhadoo/ec91490ddbe3219437df884d5e017585

That's it.

You'd have to share a log file to see what is going on as I don't see anything wrong offhand.

Added Log File in the post. please check.

Fortunately, I've found the issue.

It's in the config file.

It should be remote = simple-program-encrypted: instead of remote = simple-program-encrypted

the : missing causes the problem.

Trying all day. and mistake was this small.

1 Like

Yep, the log file makes it easy to see as I tend to autocorrect the config files in my brain as well.

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