Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to encrypt specific files #606

Open
lra opened this issue Aug 9, 2015 · 5 comments
Open

Ability to encrypt specific files #606

lra opened this issue Aug 9, 2015 · 5 comments
Labels

Comments

@lra
Copy link
Owner

lra commented Aug 9, 2015

Would be cool if Mackup could encrypt the files it synced.
Would only be supported for the copy mode.

PR welcomed once the copy mode is done.

@rolandjohann
Copy link

One simple solution would be to put the files to encrypt into an zip archive with encryption enabled.
We should discuss if encryption should happen on app basis or in general - resulting in a single zip file.

The other way will be to encrypt using python crypto on a file basis.

@nitrocode
Copy link

To get ready for a future PR, each application that requires encryption can also add a new param secure e.g. mackup/applications/aws.cfg

[application]
name = AWS CLI
secure = true

OTOH This feature wouldn't make sense with symlinks to a cloud drive cause then each time your terminal / iterm session is loaded, mackup will have to decrypt the files to use them. It would make more sense if you can tar up all of your settings in an encrypted password protected tar file.

$ mackup backup --encrypt
Password: 
Your mackup file has been encrypted and placed in ~/Dropbox/mackup-encrypted-12072017.tar.gz

Then on the second computer

$ mackup restore --decrypt --file ~/Dropbox/mackup-encrypted-12072017.tar.gz
Password: 

But then updating these files and keeping them in sync may be a pain...

@qrevel
Copy link

qrevel commented Mar 6, 2018

I don' t think there should be any archive involved here.
The idea of adding a secure param is great.

Mackup could let the plain text file in its current location and only keep the encrypted in the storage backend.

The only caveat is to run mackup backup when the text file changes.

@ndbroadbent
Copy link

ndbroadbent commented Nov 30, 2019

This would be awesome! Has anyone started working on this?

In the meantime, I'm using this simple dropbox_backup bash script to compress and encrypt some specific directories (such as my SSH keys in ~/.ssh).

@lougreenwood
Copy link

for encrypted files, I use dotbot and transcrypt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants