Encrypting a single folder

I have created an rclone config which connects to smb on a server. This works.

I would like to encrypt a single folder within a single share on that server. i.e encrypting the contents of myfoldername on

smb://mysamberserver.mydomain.com/mysharename/myfoldername

My question is this. It looks like the only way to encrypt is per config and the config does not include the share name. Does this mean if I have a config which does:
rclone mount rsyncconfigname:srv/data/encrypted /home/simon/encrypted

and I apply encryption to it, if at some point in the future I accidentally do:

rclone mount rsyncconfigname:srv/ /home/simon/encrypted

That all my files could be at risk of being encrypted ?

I'm not sure I'm making sense. I suppose I want to ensure categorically that only files in that specific folder will be encrypted. My preferred option would be for rsync to store the sharename and foldername in the rclone.conf but that would a feature request and probably a big ask.

I'm sorry If my question is nonsensical, I'm new to rclone and just trying to figure out the best way to do transparent encryption of a folder safely.

I did see this Embedding an encrypted folder with rclone · GitHub but I'd prefer not to use filter if possible. Thx

welcome to the forum,

yes, you are making sense.
the workaround is to use an alias remote.

1 Like

Great, thanks. I'll have a look. I apprecaite the input. I also asked the question, then decided to have a go and saw that hopefully it requires a folder:

Remote to encrypt/decrypt.
Normally should contain a ':' and a path, e.g. "myremote:path/to/dir",
"myremote:bucket" or maybe "myremote:" (not recommended).
Enter a value.

welcome.

and check out my topic about rclone+smb
How to access SMB/SAMBA with rclone

1 Like

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