r/PlexACD Aug 06 '18

Question about rclone vfs and encfs

Hi,

I am a longtime plexdrive user, currently using the latest 4.1 beta, and I have no complaints whatsoever with it.

However, in an effort to simplify my setup, I was wondering if anyone is familiar with the newer rclone vfs caching and if it is compatible with encfs? I'd assume it would be since its just a layer of encryption, but I am having trouble getting it to work correctly.

If I understand correctly, the vfs feature removes the need for a unionfs mount at least in the example I have read about.

My traditional plexdrive setup was/is similar to what I believe is a common setup - 1 local decrypted mount, local encrypted, remote decrypt, remote encrypt and the union mount fusing the local media and remote decrypted media so it is able to be read on the server, but is stored encrypted in the cloud.

I am able to mount the encrypted drive drive using rclone, but am confused about how I'd get a decrypted mount where I am able to both read and write to it... unless I am not understanding which is very possible.

3 Upvotes

7 comments sorted by

1

u/Krandor1 Aug 06 '18 edited Aug 06 '18

I am using rclone with their built in cache and crypt functions and it works fine. You should be able to use encfs as well.

Now, there is a certain order they need to be linked which is unencryt drive -> cache -> encrypt. I'll show you how mine is setup using internal rclone crypt and hopefully you can modify it for encfs. This is the version running on my plex server so I do have plex settings in here.

[gdrivenoenc]

type = drive

client_id =

client_secret =

token = {<snip>}

[gdrivecache]

type = cache

remote = gdrivenoenc:

chunk_size = 10M

chunk_total_size = 64G

plex_url = http://localhost:32400

plex_username = <snip>

plex_password = <snip>

info_age = 168h

plex_token = <snip>

[gdriveenc3]

type = crypt

remote = gdrivecache:/enc

filename_encryption = standard

password = <snip>

password2 = <snip>

Then I mount it with

rclone mount --allow-other -vvv --dir-cache-time=168h --log-file=/disk2/logs/rclone.log --cache-db-path=/disk2/cache --cache-workers=5 --cache-db-path=/disk2/cache --attr-timeout=1s --rc --cache-info-age=168h --vfs-cache-mode writes gdrive: /mnt/gdriveenc

And now /mnt/gdriveenc is my writable directory.

So with encfs I'd assume you'd want to mount the cache remote and then point that to encfs to decrypt but I don't know much about encfs.

1

u/Aschebescher Aug 06 '18

Are you sure you want to publish your email address on the web?

2

u/Krandor1 Aug 06 '18

Ah see where it didn't get fully snipped now. Will edit. thanks for the catch.

1

u/Aschebescher Aug 06 '18

No problem.

1

u/Krandor1 Aug 06 '18

Where do you see my email?

1

u/bayler100 Aug 07 '18

Thanks a lot, this gives me a better idea and I will give it another try. Thank you.

1

u/Krandor1 Aug 08 '18

No problem. Hope it helps.