Gsuite direkt copy with crypt

What is the problem you are having with rclone?

hello community
I've been using rclone for a long time and now have to move a gsuite drive. I use encryption for the data. Is it possible to use rclone to copy the data directly from one gsuite drive to another gsuite drive?
Without it being downloaded, decrypted, encrypted and uploaded again?
I want to copy all data from gdrive4 to gdrive 3

Regards

What is your rclone version (output from rclone version)

rclone v1.51.0

Which OS you are using and how many bits (eg Windows 7, 64 bit)

debian10 x64

  • os/arch: linux/amd64
  • go version: go1.13.7

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

Google Gsuite drive

The rclone config contents with secrets removed.

[gdrive3]
type = drive
client_id = xxx.apps.googleusercontent.com
client_secret = xxx
scope = drive
token = xxx
root_folder_id = xxx

[gcache3]
type = cache
remote = gdrive3:/gdrive3
plex_password = xxx
chunk_size = 5M
info_age = 1d
chunk_total_size = 10G

[gcrypt3]
type = crypt
remote = gcache3:/crypt
filename_encryption = standard
directory_name_encryption = true
password = xxx
password2 = xxx

[gcrypt_upload3]
type = crypt
remote = gdrive3:/gdrive3/crypt
filename_encryption = standard
directory_name_encryption = true
password = xxx
password2 = xxx

[gdrive4]
type = drive
client_id = xxx.apps.googleusercontent.com
client_secret = xxx
scope = drive
token =xx
root_folder_id = xxx

[gcache4]
type = cache
remote = gdrive4:/gdrive4
plex_password = xxx
chunk_size = 5M
info_age = 1d
chunk_total_size = 10G

[gcrypt4]
type = crypt
remote = gcache4:/crypt
filename_encryption = standard
directory_name_encryption = true
password = xxx
password2 = xxx

[gcrypt_upload4]
type = crypt
remote = gdrive4:/gdrive4/crypt
filename_encryption = standard
directory_name_encryption = true
password = xxx
password2 = xxx

If you want to change the password/salt for the encryption, the only way is to download and upload it again.

If you want to keep everything the same, you can just copy from the source to destination directly but not using the crypt and that would work as well.

So in my example, I have a GD:crypt where my crypt points to and I can copy GD:crypt to newGD:crypt instead of poing to my gcrypt: remote which is encrypted one.

this should allow you to copy the crypted files

  • without need to decrypt and re-encrypt.
  • without the need to upload and download using your local computer network resources.

https://rclone.org/crypt/#backing-up-a-crypted-remote

https://rclone.org/drive/#drive-server-side-across-configs

that is a very old version of rclone, latest is v1.54.1
the cache backend has been depreciated
https://rclone.org/cache/#status

1 Like

thank you very much i will test it.

do i have to change the config when i do the update?

no need to change the config file when doing an update.

tho it cannot hurt to have a backup, as it is a critical file.

thanks, i have updated to
rclone v1.54.1

does not work in parallel?,

rclone sync -i gcrypt4:/xxx gcrypt_upload3:/xxx

error:
2021/03/21 19:00:55 ERROR : /root/.cache/rclone/cache-backend/gcache4.db: Error opening storage cache. Is there another rclone running on the same remote? failed to open a cache connection to "/root/.cache/rclone/cache-backend/gcache4.db": timeout
2021/03/21 19:00:56 ERROR : /root/.cache/rclone/cache-backend/gcache4.db: Error opening storage cache. Is there another rclone running on the same remote? failed to open a cache connection to "/root/.cache/rclone/cache-backend/gcache4.db": timeout
2021/03/21 19:00:56 Failed to create file system for "gcrypt4:/archive_0day/1980": failed to make remote "gcache4:/crypt" to wrap: failed to start cache db: failed to open a cache connection to "/root/.cache/rclone/cache-backend/gcache4.db": timeout

I have both drives mounted.

i never used the cache remote, as it never left beta, has been depreciated and is known to have bugs that will never get fixed.

so have gcrypt4 use gdrive4, not gcache4

and i would test with --dry-run

so here it works:

rclone sync -i gdrive4:gdrive4/crypt/5in7basdfasdfhsi12085rgjatj760os/iv5gm9aepasdfava0050r7k0es1qtc gdrive3:gdrive3/crypt/5in7basdfasdfhsi12085rgjatj760os/iv5gm9aepasdfava0050r7k0es1qtc

many thanks for the help.

another question, or should I make a new request in the forum?

the file names are encrypted, is there a way to tell me what the directory is called in the encryption?

e.g.
archive_2020 means encrypted : iv5gm9aepasdfava0050r7k0es1qtc

good, you got it working.

you can find the answer here.
https://rclone.org/crypt/

I don't want to re-encrypt it, I just want to show what the name would be in the encryption or vice versa. so only an echo in or without encryption

thanks

https://rclone.org/crypt/#crypt-show-mapping

thanks, found and work :slight_smile:

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