Move files to crypt folder

Hey im trying to move unencrypted files to an encrypted folder… i use

rclone -q copy gdrive:/backup/test gdrive:backup/gcrypt

It moves the files ok just dont encrypt them.

Could anyone give a hand please

thank u :slight_smile:

What does your rclone.conf look like (without keys and passwords)?

You’d have to have an entry in there for the encrypted remote to move it to as that is how rclone knows it’s an encrypted folder. You look to be moving it to the same remote and just making a folder called gcrypt.

So in my case, I have 2 remotes, GD and gcrypt:

[GD]
type = drive
client_id = 
client_secret =
token = 

[gcrypt]
type = crypt
remote = GD:media
filename_encryption = standard
password = password
password2 = password
directory_name_encryption = true

In my GD, I have a folder called media. GD:media is my encrypted folder.

So I’d run something like:

rclone copy GD:/some/other/location gcrypt:

And that would copy from one location decrypted to an encrypted media folder so when I check, I can see it works:

 rclone lsd GD:media
          -1 2018-06-30 12:55:49        -1 d93daonsmv845k5s40knr5mf4s
          -1 2018-06-17 09:16:39        -1 s1n6gn87oo537vvls13nahl6co
          -1 2017-04-18 16:14:26        -1 smu5ej34ujbdoip1cm3mlk92q4
          -1 2018-06-17 10:24:02        -1 tnvepu36qiohcun8v84ddhsam0
felix@gemini:~$ rclone lsd gcrypt:
          -1 2018-06-17 10:24:02        -1 Movies
          -1 2018-06-17 09:16:39        -1 Radarr_Movies
          -1 2017-04-18 16:14:26        -1 TV
          -1 2018-06-30 12:55:49        -1 TV_Ended
felix@gemini:~$
[gdrive]
type = drive
scope = drive
token = {"access_token":""}

[gcache]
type = cache
remote = gdrive:
plex_url = http://127.0.0.1:32400
plex_username = username
plex_password = password
chunk_size = 5M
info_age = 1d
chunk_total_size = 1G

[gcrypt]
type = crypt
remote = gcache:/backup/gcrypt
filename_encryption = standard
directory_name_encryption = true
password = password
password2 = password

Using -

rclone mount gdrive:backup/films /home/judgey/torrents/gfilms --daemon --allow-other
rclone mount gdrive:backup/tv /home/judgey/torrents/gtv --daemon --allow-other
rclone mount --allow-other --daemon gcache:/backup/gcrypt /home/judgey/torrents/gcache

So you’d run something like:

rclone -q copy gdrive:/backup/test gcrypt:

But the cache backend can only have 1 thing going so you’d have to stop the mount or make another direct crypt remote like i have and just copy to that. It can be the same password as well.

ok thanks will give it a bast :slight_smile:

Hey, im sorry if i sound dumb but im very new to all this.

I now have

rclone mount --allow-other --daemon gcache:/gcrypt /home/judgey/torrents/gcache

and doing

rclone copy gdrive:/backup/test gdrive:/gcrypt

but its still not encrypting the file, im sorry if i dont understand what you mean, could you explain like im a total newbie.

Thank you

Gdrive: is a non-crypt remote. You need to create a crypt remote using “rclone config”. Then you’d use that remote as a instead.

Say I named my crypt remote as gdrive-crypt… then you’d sync to crypt like

rclone copy gdrive:/backup/test gdrive-crypt:

In your mount you’d mount with gdrive-crypt: instead.

Thanks mate will give it a go :slight_smile:

hey i have managed to get the files encrypted thanks loads…

now plex wont show any files, i have moved my library to the new mount in plex but as they encrypted it can not see any films.

What have i done wrong :o:

Thank u :slight_smile:

I assume Plex is looking in your mount. What happens when you do an ls on the rclone mount. Do you see the files? Are you mounting the gdrive-crypt instead of the unencrypted gdrive?

Let’s see your .rclone.conf config with password/keys removed, and your mount command. And output of ls as you navigate into your mount.

[gdrive]
type = drive
scope = drive
token = 
[gcache]
type = cache
remote = gdrive:
plex_url = http://127.0.0.1:32400
plex_username = username
plex_password = password
chunk_size = 5M
info_age = 1d
chunk_total_size = 1G

[gdrive-crypt]
type = crypt
remote = gdrive:gdrive-crypt
filename_encryption = standard
directory_name_encryption = true
password = password
password2 = password

Then i do

rclone mount --allow-other gcache:gdrive-crypt /home/judgey/torrents/gcache

~/torrents/gcache/gfilms$ ls
3m4j5s3rs2bcbfq0jfhgkdan1m3hfure8p525smbvn0qvksfl4ehacm8v7v7rlc10i6unauk7tskgpnpnv3klvklnmkt3o6rpu67ing
40t3pqgo5dfe464j1ukmq0nt25a891t04s4671rnb5sic059v7rdq9d7qmkar57fjbc382hl0q9bu
cp9s8gemdfhsr0vhfnjgi9ctlfr1ohmqb7hotnv8bek5g1bkaqm0
d19alcbteqhicjmpo45cl02t54sfk3vos3hv7kuu1jj2pce1590phsifdavnpclpit85sbjg0e2vtiumt4leqq88eqkrbh7m1n9e8rf2i8clntorp96m7clmqeupjo6ls77oiura8nbiks7op5lsqlhng8
d4t7mkatbmunsrsqiigo8man7sf8r5o9n79ielaa351cnttmk7qj3p8i4eho4k9o9s3jer7q7d1d6
default
ekrthpihju6rlahju3c7khpobdnseiq5objp641n8ma3nn347j9g0cqi19rlft6plg1nnqci9lvo0
f8ri5h44pu7eu3uehdk38qk7kq1k0r1mm6r84ha2156tkvop3e4g1on1r1n718krg6sfm4lqcifi8
fbhajjhfpn30abcg2i2qtg95fkf73es834j22693atn25jsk7jabqgebqom3oma70i6jk17786u7jb0hruptmt9arec873nfnd2let0
fiktefb90vn8plj556u7ajo3ektccmbed59s7qo0pajfqkvmkrr13juv0uje59tf943olf4i9gu2a
gs0mq6ok3nlilfca92sr3e4748sqtprumt4pjpv9gv0o12ulj4rgqrnvfoo456rmnvfjomvoaicag
j8sdu34ocug7iq21gpvq9poe652728avv5dmt21ocg5jgdjocqv7m2ltpkjhpccqv3g1o1i38ab7m
k6tate0njutkli4p83jh32u2t3h61v0mgsi852rlrraekn233871ql9hqrc2lp1rr5o1eehodbqod51e9lomenpc16pjrs6ojj4ghdtvfcdba4odcou8uo9suce4abmt6j6pghpdjavcovuunomuv6vra4aemlsjad9npk79qrfr1bn4sg6cbsi2v6rusfcbdsa9s14itild4
mba806pkfnmgk38el5o36jfii8rm32nlgd5a1cebannlhbf3v0780rilhooa5mrdhhqjiffm59c28
mcmjjj8pp67ofaokluqe2kcmjjs471l89oj1u6vn0lsak783r4n6g5ud67p402ufs1f4kaktq8dn0nftcg6noo8fokm87rh88qru1l3uvcug7cp26psnqri3jgipf698
naoo0vivsl40vbra5ct2r4vl8cnd65osnugg28jup4f04hj43e275s3mf131nj1vb7aenjhqqmc506p374ek60c2se754gddjg7hk2dr0ehe3hf1cj9sgm93qljees1i
nhcb1onii61574im3evgr8ud8cfjakpskcesep3qa2398c8f3kjkmhhe9nle2lsa25t9bp2ura2m6[judgey@Ubuntu-1804-bionic-64-minimal]:(71.4Gb)~/torrents/gcache/gfilms$

You’re bypassing your crypt and the order should look like this:
cloud remote -> cache -> crypt

So this:

[gdrive]
type = drive
scope = drive
token = 

[gcache]
type = cache
remote = gdrive:
plex_url = http://127.0.0.1:32400
plex_username = username
plex_password = password
chunk_size = 5M
info_age = 1d
chunk_total_size = 1G

[gdrive-crypt]
type = crypt
remote = gcache:gdrive-crypt
filename_encryption = standard
directory_name_encryption = true
password = password
password2 = password

rclone mount --allow-other gdrive-crypt: /home/judgey/torrents/gcache

Hey, thanks for taking your time out to help me it is very much appreciated,

I just did what u said now its saying

Fatal error: Can not open: /home/judgey/torrents/gcache: open /home/judgey/torrents/gcache: transport endpoint is not connected

Then it isn’t fully unmounted before you mounted it.

fusermount -u /home/judgey/torrents/gcache

ok reboot sorted that thank u

Just testing now

thanks for your patience

Ok i feel im soooo close now, im doing

rclone mount --allow-other gdrive-crypt: /home/judgey/torrents/gcache

rclone copy gdrive:/backup/test gdrive-crypt:

but im getting

2019/03/01 21:40:53 ERROR : /home/judgey/.cache/rclone/cache-backend/gcache.db: Error opening storage cache. Is there another rclone running on the same remote? failed to open a cache connection to "/home/judgey/.cache/rclone/cache-backend/gcache.db": timeout
2019/03/01 21:40:54 ERROR : /home/judgey/.cache/rclone/cache-backend/gcache.db: Error opening storage cache. Is there another rclone running on the same remote? failed to open a cache connection to "/home/judgey/.cache/rclone/cache-backend/gcache.db": timeout
2019/03/01 21:40:54 Failed to create file system for "gdrive-crypt:": failed to make remote gcache:"gdrive-crypt" to wrap: failed to start cache db: failed to open a cache connection to "/home/judgey/.cache/rclone/cache-backend/gcache.db": timeout

Its encrypting if i load a file via sftp just the copy cmd is giving me the error

You can only have one process accessing the same cache at the same time. So you either need a different remote to use for copy or you need to unmount then copy. If I were you, i’d name things better and then copy without the cache. Like this:

[gdrive]
type = drive
scope = drive
token = 

[gcache]
type = cache
remote = gdrive:
plex_url = http://127.0.0.1:32400
plex_username = username
plex_password = password
chunk_size = 5M
info_age = 1d
chunk_total_size = 1G

[gcache-crypt]
type = crypt
remote = gcache:gdrive-crypt
filename_encryption = standard
directory_name_encryption = true
password = password
password2 = password

[gdrive-crypt]
type = crypt
remote = gdrive:gdrive-crypt
filename_encryption = standard
directory_name_encryption = true
password = password
password2 = password

Then mount

rclone mount --allow-other gcache-crypt: /home/judgey/torrents/gcache

Then you can use the other one for your copy as you really don’t need the cache there for that.

rclone copy gdrive:/backup/test gdrive-crypt:

Thank you so much :slight_smile:

1 Like

Hey i have a couple of questions, can i carry on here or should i make a new topic ?

/thanks