26
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 18 Aug 2024
26 points (93.3% liked)
Programming
16971 readers
243 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 1 year ago
MODERATORS
If you use ext4 or other filesystem that supports fscrypt, you can use fscrypt to encrypt specific directories.
There's also gocryptfs for a fuse-based userspace implementation.
ZFS has built-in encryption: https://klarasystems.com/articles/openzfs-native-encryption/
I don't want to encypt them in-place because I'll be uploading them onto a server, copying them on an external drive.
I've been using gocryptfs now for a few years and it works fine as you describe.
You initiate the encrypted folder, set up automatic backups for it. Then whenever you want to access it you mount it into another folder.
There is a distinction here between the permanently encrypted folder that you can upload backup whatever, and your temporary mount, unencrypted folder.
If you're alright with the rare conflicts to fix yourself something like syncthing works well for this setup even across computers.