Move encrypt file and folder

When I decided to encrypt the data in my google drive I created a share drive to simplify the encryption of the primary drive on the fly. Now if I want to return my data to my primary drive, can this be done without re-encrypting from the share drive to the primary drive?

rclone v1.55.1

  • os/type: linux
  • os/arch: amd64
  • go/version: go1.16.3
  • go/linking: static
  • go/tags: none

Ubuntu

Workspace

[Gsuite]
type = drive
scope = drive
root_folder_id =

[Gcrypt]
type = crypt
remote = Gsuitee:/Personnel
filename_encryption = standard
directory_name_encryption = true
password =
password2 =

[Gsuitee]
type = drive
scope = drive
team_drive =

hello,

yes, you can copy the crypted files from one location to another, without having to de-crypt and then re-encrypt.

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

after the file copy, you would need to add two new entries in the rclone config file

one entry for the new location of the crypted files, which in your current config is Gsuitee

one entry for the location of the new crypt remote, which in your current config is Gcrypt
NOTE: for this new remote, must use the EXACT same settings, just copy and paste

filename_encryption = standard
directory_name_encryption = true
password =
password2 =

I did a test yesterday by creating a folder named Personal and I modified Gcrypt I don't know if this is the right way to do it... Gsuite is my main account and Gsuitee is the share drive. so i only modify as follows Gcrypt.

[Gcrypt]
type = crypt
remote = Gsuite:/Personnel

So in my case by doing:
rclone sync -i Gsuitee:/Personnel Gsuite:/Personnel

I happen to clone the Personnel folder from my share drive (Gsuitee) to my main drive (Gsuite)?

and i juste replace:

[Gcrypt]
type = crypt
remote = Gsuitee:/Personnel

With:

[Gcrypt]
type = crypt
remote = Gsuite:/Personnel

yes, you can just edit exsiting entries but i prefer to create new entries.
once the new entries are working, then perhaps delete the old entries.

in any event, you got it working!

Very cool! Do I have to create the Personnel folder in Gsuite or will the command create it?

I will do a test by creating a new entry, but when it comes to the passwords to enter I always wondered if I was entering the originals passwords or those of the entry which are encrypted?

if the config file is crypted, then i would use rclone config to create the remotes and use the original passwords.
if the config file is not crypted, then just copy and paste, instead of re-typing - less change of mistakes.

In fact yes there are 2 passwords for the crypt part. so I would use the passwords that I had chosen in the configuration and not those that we see in the config file?

i do a test and i get this messages:

rclone sync -i Gsuitee:/Personnel Gsuite:/Personnel
rclone: copy "v49oeqg0lr1h4r3vrikhtqknjg/66tppaedttu79r86fcicq1pk48"?
y) Yes, this is OK (default)
n) No, skip this
s) Skip all copy operations with no more questions
!) Do all copy operations with no more questions
q) Exit rclone now.
y/n/s/!/q> 2021/06/28 12:16:20 NOTICE: 75qc11eqrlqfs8tujrkd6kkpi8/jh61l2lvr9qf1qu9mnptmvtqsg/13q5dp1ps43q5id7t2cfg8d8hbadsprb7sa11nlpd0po1vj8lqnaf9e6d0qr617nmhrqb4iopck1su9cil6k9suikp231h3me33q8748j74vcs4n5rijrbddcb6agpuchg2p2e69rqhtmpmspgihvmpvkg: Duplicate object found in source - ignoring
2021/06/28 12:16:20 NOTICE: 75qc11eqrlqfs8tujrkd6kkpi8/jh61l2lvr9qf1qu9mnptmvtqsg/4idfb1e4i987mkb4t5didpsqlrjo3rhlqraene95364mt8j4pucrqkm1a54nt90cs33utb6rssviddjdv0i3popq25oq38tq27avmfo: Duplicate object found in source - ignoring
2021/06/28 12:16:20 NOTICE: 75qc11eqrlqfs8tujrkd6kkpi8/jh61l2lvr9qf1qu9mnptmvtqsg/o5nh3131db9uqk60tupjb5kc7k3e8jhuu34j9i8mo0r9677so9u6nlquui4nnllgs4k61hbjoc9dstc73k4d468atunequaqo6dqd70: Duplicate object found in source - ignoring
2021/06/28 12:16:20 NOTICE: 75qc11eqrlqfs8tujrkd6kkpi8/jh61l2lvr9qf1qu9mnptmvtqsg/qmj1605mchgardlfg43qlantasqmf0tqaksrsdgtprrpfq3n51qhakbsbctc2jlqvl28gqinlq24s: Duplicate object found in source - ignoring
2021/06/28 12:16:20 NOTICE: 75qc11eqrlqfs8tujrkd6kkpi8/jh61l2lvr9qf1qu9mnptmvtqsg/re1upmibjchqfsur9538en3igogklaea6nbssqenbjss546bth0iipu01fst3dvuimvegp0j9p378uk1ujet6bp7f9tggpln8op7og0: Duplicate object found in source - ignoring

Gsuitee: / Personnel is the source and Gsuite: / Personnel the destination?

Thanks!

The problem I see is that it uses all my bandwidth. So the files go through my home before going back to the right place...

as i wrote up above,

"if the config file is crypted, then i would use rclone config to create the remotes and use the original passwords.
if the config file is not crypted, then just copy and paste, instead of re-typing - less change of mistakes."

also, if you change the config file, you need to re-post it along with the command.
for the command, add -vv for debug output.

will create the remotes prevent the 13TB of storage from going through my home?

if you are copying between two remotes, than you need to add
https://rclone.org/drive/#drive-server-side-across-configs

well create another remote crypt to link to my Gsuite? I'm not sure I fully understand what to do exactly

you need a remote for the source and the dest.
the source remote is Gsuitee, correct?
the dest remote is Gsuite, correct?

rclone sync Gsuitee:/Personnel Gsuite:/Personnel --drive-server-side-across-configs --dry-run

exactly yes, I will try like this :slight_smile:

Currently Gcrypt is linked to Gsuitee. do I have to create another remote crypt to link to Gsuite?

first you need to copy the files into Gsuite:Personnel
after that is done, we can create a new remote.

so try the command, look at the output and see if the command does what you want.
you might want to add -v to the command for better output.
if the output looks good, then remove --dry-run, and run the command again, this time rclone will copy the files.

i get many errors like that:

<5>NOTICE: unvv8pa43kv364emelql8qquc8/timgjemkjv1orb1hg1sirl173qia0tko3sg0s8uge8an5chjladg/2laqqi0nddrrh12m56ll1kgrc5m2j8sjsu9l4mhhhoe34ev3cqtdrtbsu26q2307trsrv65ni50kq/gdq6qqjj52eiog35dj5ot7ak3o/avdjemfqpm93l7o92bm5tricscqdfbpnlm7ct0p46v99j6dnpj50/l68psh6f5g0q91p991e93mls9o: Skipped copy as --dry-run is set (size 49)
<5>NOTICE: unvv8pa43kv364emelql8qquc8/timgjemkjv1orb1hg1sirl173qia0tko3sg0s8uge8an5chjladg/2laqqi0nddrrh12m56ll1kgrc5m2j8sjsu9l4mhhhoe34ev3cqtdrtbsu26q2307trsrv65ni50kq/gdq6qqjj52eiog35dj5ot7ak3o/avdjemfqpm93l7o92bm5tricscqdfbpnlm7ct0p46v99j6dnpj50/vauigl3deje0nvete81n3fdu74: Skipped copy as --dry-run is set (size 1.604k)

there is not error, the rclone entry is NOTICE, not ERROR

since --dry-run is in use, rclone will not copy the files, but rclone will tell you what it would have done.

I let go 1 or 2 minutes and nothing got copied into the destination folder, does it check before transferring?

did you read the documentation for --dry-run?