Rclone encrypted to google. How?
from osanna@lemmy.vg to selfhosted@lemmy.world on 04 Jul 21:47
https://lemmy.vg/post/7313538

Hello :)

I am trying to set up an encrypted gdrive connection in rclone.

For some reason, it won’t upload to gdrive when I use the crypt remote, but it works fine when i use just the gdrive remote.

When I use the crypt remote, it simply created a folder called the gdrive remote name, then uploads everything encrypted to there with a directory called whatever remote name i use for the remote crypt. I’m probably not explaining very well.

/media/drive/drive/docs$ ll

total 19112

drwxrwxr-x 30 osanna osanna    4096 Jul  5 05:37  ./

drwxrwxr-x  3 osanna osanna  4096 Jul  5 05:33  ../

-rw-rw-r--  1 osanna osanna 123794 Jul  4 22:19  106.nClDs-5357-30-32_45.78.43-DpCGpC.EIE

-rw-rw-r--  1 osanna osanna   596291 Jul  5 01:17  11.HE.DKCruHI

-rw-rw-r--  1 osanna osanna  176385 Jul  5 01:17 '120.ozRRVNQCR BNOX.JCAW'

-rw-rw-r--  1 osanna osanna    11444 Jul  5 01:44 '14.nGMBMExw 2.HwL'

-rw-rw-r--  1 osanna osanna   182000 Jul  5 01:17  157.bmEEIADpE.wpnJ

-rw-rw-r--  1 osanna osanna   94588 Jul  4 14:37  163.827663.HFy

-rw-rw-r--  1 osanna osanna     8612 Jul  5 01:13  178.rmAA.FtAF

my rclone.config:

[drive]

type = drive

token = {"access_token":"[redacted]","token_type":"Bearer","refresh_token":"[redacted[,"expiry":"2026-07-05T06:26:08.783447+08:00","expires_in":3599}

team_drive = 

[drivecrypt]

type = crypt

remote = drive

password = [redacted]

filename_encryption = obfuscate

directory_name_encryption = false

The command I’m using is this:

/media/drive$ rclone copy files drivecrypt:docs/

Anyone got any idea? I’m losing my mind here.

TIA :)

#selfhosted

threaded - newest

osanna@lemmy.vg on 04 Jul 21:50 next collapse

sorry, tried formatting it. How the fuck does code formatting work on lemmy??

talkingpumpkin@lemmy.world on 04 Jul 21:57 next collapse

Err… you write markdown and hit “preview” before posting?

Also, the edit box (PC, browser) has a question mark button that will take you to join-lemmy.org/docs/users/02-media.html

slazer2au@lemmy.world on 04 Jul 21:58 next collapse

Put 3 ticks ` the symbol next to 1 on the keyboard before and after the code snippet.

Code
osanna@lemmy.vg on 04 Jul 22:02 collapse

aha, thanks. I tried that before, but maybe i did it wrong.

irmadlad@lemmy.world on 04 Jul 22:08 collapse

You can do like @slazer2au said, or you can paste the code in here, highlight it, an click the <> symbol in the editing box menu.

<img alt="" src="https://lemmy.world/pictrs/image/6238c140-3d74-4109-a039-a12746905e38.png">

osanna@lemmy.vg on 04 Jul 22:50 collapse

ah, I fixed it. For anyone interested, crypt remotes need a : on the end. So remote: drive: is correct, not remote: drive

I’ve been at this for hours. finally fixed the damn thing.

irmadlad@lemmy.world on 05 Jul 00:06 collapse

Well, I’m glad we could help you work through both your problems. It was a good day tater,