Copy to crypt goes to wrong directory

Rclone copy to Google Drive not going to expected directory.

rclone version:

rclone v1.58.1-DEV
- os/version: opensuse-tumbleweed (64 bit)
- os/kernel: 5.19.8-1-default (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19
- go/linking: dynamic
- go/tags: none

Command that works:

rclone copy ~/Public Gdrive:Bumfuzzle/JR <- works as expected, i.e. everything in ~/Public is copied to /JR

Command that doesn't work:

rclone copy ~/Public Crypt:Bumfuzzle/JR <- everything in ~/Public is copied to My Drive

rclone.conf:

[Gdrive]
type = drive
scope = drive
root_folder_id = XXXX
token = {"blah blah blah"}
team_drive = 

[Crypt]
type = crypt
remote = Gdrive
password = ABCD

rclone stout:

2022/09/24 10:30:13 DEBUG : rclone: Version "v1.58.1-DEV" starting with parameters ["rclone" "copy" "-vv" "/home/JR/Public" "Crypt:Bumfuzzle/JR"]
2022/09/24 10:30:13 DEBUG : Creating backend with remote "/home/JR/Public"
2022/09/24 10:30:13 DEBUG : Using config file from "/home/JR/.config/rclone/rclone.conf"
2022/09/24 10:30:13 DEBUG : Creating backend with remote "Crypt:Bumfuzzle/JR"
2022/09/24 10:30:13 DEBUG : Creating backend with remote "Gdrive/nlisba1qqs778nii6673o5i7v8/peb5on1ljnoc5bu2tleb4ekmrg"
2022/09/24 10:30:13 DEBUG : fs cache: renaming cache item "Gdrive/nlisba1qqs778nii6673o5i7v8/peb5on1ljnoc5bu2tleb4ekmrg" to be canonical "/home/JR/Gdrive/nlisba1qqs778nii6673o5i7v8/peb5on1ljnoc5bu2tleb4ekmrg"
2022/09/24 10:30:13 DEBUG : fs cache: switching user supplied name "Gdrive/nlisba1qqs778nii6673o5i7v8/peb5on1ljnoc5bu2tleb4ekmrg" for canonical name "/home/JR/Gdrive/nlisba1qqs778nii6673o5i7v8/peb5on1ljnoc5bu2tleb4ekmrg"
2022/09/24 10:30:13 DEBUG : test: Modification times differ by -131.547463ms: 2022-09-24 07:53:34.131547463 -0500 CDT, 2022-09-24 07:53:34 -0500 CDT
2022/09/24 10:30:13 DEBUG : test-files/conky_notes: Modification times differ by -704.132684ms: 2022-08-25 16:57:02.704132684 -0500 CDT, 2022-08-25 16:57:02 -0500 CDT
2022/09/24 10:30:13 DEBUG : preAllocate: got error on fallocate, trying combination 1/2: operation not supported
2022/09/24 10:30:13 DEBUG : preAllocate: got error on fallocate, trying combination 2/2: operation not supported
2022/09/24 10:30:13 DEBUG : test-files/conky_startup: Modification times differ by -712.132748ms: 2022-08-25 16:57:02.712132748 -0500 CDT, 2022-08-25 16:57:02 -0500 CDT
2022/09/24 10:30:13 DEBUG : test-files/conkyrc3: Modification times differ by -696.132619ms: 2022-08-25 16:57:02.696132619 -0500 CDT, 2022-08-25 16:57:02 -0500 CDT
2022/09/24 10:30:13 DEBUG : test-files/conkyrc1: Modification times differ by -696.132619ms: 2022-08-25 16:57:02.696132619 -0500 CDT, 2022-08-25 16:57:02 -0500 CDT
2022/09/24 10:30:13 DEBUG : test-files/conkyrc4: Modification times differ by -704.132684ms: 2022-08-25 16:57:02.704132684 -0500 CDT, 2022-08-25 16:57:02 -0500 CDT
2022/09/24 10:30:13 DEBUG : test-files/conkyrc5: Modification times differ by -712.132748ms: 2022-08-25 16:57:02.712132748 -0500 CDT, 2022-08-25 16:57:02 -0500 CDT
2022/09/24 10:30:13 DEBUG : test-files/cron_grsync: Modification times differ by -716.13278ms: 2022-08-25 16:57:02.71613278 -0500 CDT, 2022-08-25 16:57:02 -0500 CDT
2022/09/24 10:30:13 DEBUG : Encrypted drive 'Crypt:Bumfuzzle/JR': Waiting for checks to finish
2022/09/24 10:30:13 DEBUG : Encrypted drive 'Crypt:Bumfuzzle/JR': Waiting for transfers to finish
2022/09/24 10:30:14 DEBUG : test-files/conky_notes: md5 = d8927c8119e17afe716ebd5acb435cc8 OK
2022/09/24 10:30:14 INFO  : test-files/conky_notes: Copied (replaced existing)
2022/09/24 10:30:15 DEBUG : test-files/conkyrc3: md5 = 002a56ff40db50903c00ce594377a23c OK
2022/09/24 10:30:15 INFO  : test-files/conkyrc3: Copied (replaced existing)
2022/09/24 10:30:15 DEBUG : test: md5 = 8f1ca2c9021c9b1ba6d3b96dd596d30a OK
2022/09/24 10:30:15 INFO  : test: Copied (replaced existing)
2022/09/24 10:30:15 DEBUG : test-files/conky_startup: md5 = a16b8c32b6a27c57441ee6ec4daf1e33 OK
2022/09/24 10:30:15 INFO  : test-files/conky_startup: Copied (replaced existing)
2022/09/24 10:30:16 DEBUG : test-files/conkyrc1: md5 = b7439117d36fb87ff49e1a617961d557 OK
2022/09/24 10:30:16 INFO  : test-files/conkyrc1: Copied (replaced existing)
2022/09/24 10:30:17 DEBUG : test-files/conkyrc4: md5 = 63dbdd86880bab346509b94bfba9a2ff OK
2022/09/24 10:30:17 INFO  : test-files/conkyrc4: Copied (replaced existing)
2022/09/24 10:30:17 DEBUG : test-files/conkyrc5: md5 = a15f30b4775a6768dd462f00afbad365 OK
2022/09/24 10:30:17 INFO  : test-files/conkyrc5: Copied (replaced existing)
2022/09/24 10:30:17 DEBUG : test-files/cron_grsync: md5 = 637825ad2b3ddf695098642af12d3461 OK
2022/09/24 10:30:17 INFO  : test-files/cron_grsync: Copied (replaced existing)
2022/09/24 10:30:17 INFO  : 
Transferred:   	   17.411 KiB / 17.411 KiB, 100%, 4.351 KiB/s, ETA 0s
Checks:                 8 / 8, 100%
Transferred:            8 / 8, 100%
Elapsed time:         4.3s

2022/09/24 10:30:17 DEBUG : 3 go routines active

As usaul, it's probably PEBKAC!

Your crypt remote needs a ":" at the end so Gdrive:somefolder as people normally make a crypt location in there drive to store things.

Without a colon, it'll copy locally.

Sorry, I don't understand. Like this?

[Crypt]
type = crypt: <--?
remote = Gdrive

Hi karlio,

The next version of rclone will give you this message:

NOTICE: "Gdrive" refers to a local folder, use "Gdrive:" to refer to your remote or "./Gdrive" to hide this warning.

Is this wording sufficient for you to guess the right move?

Hallo Ole!

I'm getting it, but slowly. LOL

Your config should look something like this:

[Gdrive]
type = drive
scope = drive
root_folder_id = XXXX
token = {"blah blah blah"}
team_drive = 

[Crypt]
type = crypt
remote = Gdrive:SOMEFOLDERYOUMAKEFORYOURCRYPT
password = ABCD

That way you have a folder called something that is all your crypt content as you should not mix crypt and non crypt content.

Great!

@Animosity022 is right, you probably want to use something like:

[Crypt]
type = crypt
remote = Gdrive:Bumfuzzle/JR/crypt
password = ABCD

You can leave out the /crypt part of the path if you have nothing else in Gdrive:Bumfuzzle/JR

and then do

rclone copy ~/Public Crypt:

Gotcha. Thank you Animosity022 and Ole

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