Newbie question: Currently I'm using RSYNC to backup my files from my computer to an External HD that is always connected to my computer.
rsync -avzr /home/user/folder1/ /media/hd1/folder1/
My goal is to encrypt this backup on the external HD, so I'm looking for a way to create a script with the followig flow:
- Decrypt External HD folder
- RSYNC files to external HD
- Encrypt External HD folder
Is there a way to achieve this script, maybe using native ubuntu commands or maybe using VeraCrypt, something like that?