0
I'm just learning bash and I'm about to renew my backup security standards at home, just in case something happens.
I have two external HDDs for Backup. I want to encrypt the files first on my laptop (which has a disk encryption applied to) and then move them to the HDD's so that there is no hidden (deleted) unencrypted data on there.
I could simply use a Disk Encryption but that's not what I intend to do for several reasons.
Beside that, how does a script looks like which encrypts all files (not the folders itself) down to the last subfolder from a given root folder using AESCrypt oder maybe something similar with AES-256-CBC?
So you want only the files on the 2nd drive to be encrypted not the drive? if so a simple rsync -raXxHhD /drive_1 /drive_2 --exclude=/path/to/{contents_of_excludes.txt} – linuxdev2013 – 2016-09-29T12:04:05.073
Thanks, now I just have to encrypt the files beforehand. I wasn't aware of this command before – user646056 – 2016-09-30T22:46:16.807
If you are wanting to keep all the encrypted bits as is use
dd
– linuxdev2013 – 2016-10-02T13:58:49.943