Copy files to a usb stick and automatically encrypt or encrypt files/folders and copy them to usb
by bmxakias from LinuxQuestions.org on (#50MZJ)
Hello
I have a folder /home/backup/myfiles/ with some files inside that i would like to have them as encrypted on my usb disk.
I was thinking to use the usb stick as encrypted in a way that if i copy files there to automatically encrypt (i think there is a software for it) but it may not be so practical as if i move it to another system to be easy to restore ?
So i am thinking also for a solution like gpg that i can crypt them and be able to another system easily to decrypt them using the passphrase ....
On second scenario i think i can do a simple bash script to do it automatically ....
Any recommendations and ideas please? I am on Centos 7...
Thank you


I have a folder /home/backup/myfiles/ with some files inside that i would like to have them as encrypted on my usb disk.
I was thinking to use the usb stick as encrypted in a way that if i copy files there to automatically encrypt (i think there is a software for it) but it may not be so practical as if i move it to another system to be easy to restore ?
So i am thinking also for a solution like gpg that i can crypt them and be able to another system easily to decrypt them using the passphrase ....
On second scenario i think i can do a simple bash script to do it automatically ....
Any recommendations and ideas please? I am on Centos 7...
Thank you