Symlink two folders, one copy encrypted, the other not?
I wondered if anyone knows of a way to hijack the symlink mechanism such that it runs any changes through a cipher, resulting in one folder being unencrypted, the other encrypted.
Or, just a way to achieve the same. I'd like to symlink my Zim notebook folder inside my Dropbox folder with: Code:
$ ln -s ~/Notebooks ~/Dropbox/Notebooks I appreciate there are likely options that involve scheduling a job, I'm curious if anyone who reads this is aware of any means to achieve the ends I'm trying to here. Thanks for reading :) |
...I was searching with the keyword symlink, I realized I needed to generalize my query to being about normal folders. Since adjusting my keywords, it seems there are some options to explore. I've tried Cryptomater, but I get "Mount Failed", so will try BoxCryptor Classic (https://www.boxcryptor.com/en/download/)
|
I get the impression that BoxCryptor may aswell not be performing the encryption client-side; they keep a copy of the keys on a centralized server, from what I can tell (so, I'm just introducing an additional party into the mix, not very helpful!).
Anyone got any better ideas? I read about EncFS, but it's not secure in this scenario (as detailed on Wikipedia). |
Quote:
https://www.boxcryptor.com/en/technical-overview Quote:
Quote:
|
Quote:
|
"Bzzzzt!!! Nope!!!! (Sorry...)
Let's stop to consider exactly what these two types of "links" actually are. First, the preliminaries:
Whereas a soft link simply leads to "a file name," which then must be separately resolved. (And which may either succeed or fail. You won't know until you try.) Nowhere in all of this will you find "two separate pathways to the underlying file-system, 'one encrypted and the other not.'" One way or the other, every path leads (or, fails to lead ...) to: "one particular inode." |
Quote:
Quote:
EDIT: I don't think it quite will - I'm very much looking for a transparent, set it and forget it option. All I want to do is backup some files, and keep the key locally. I think a sensible solution might a scheduled task - I think it is that I am trying to set up something that "syncs on change" that is making this more difficult than it need be. |
If I understand the question right, it's possible to do what you want with ecryptfs.
Code:
mount.ecryptfs folder1 folder2 Is the dropbox folder a FUSE filesystem? I believe is it also possible to stack FUSE filesystems. |
All times are GMT -5. The time now is 08:37 AM. |