Page 1 of 1

best practice for encryption of file tree

Posted: Thu Jan 29, 2015 1:50 pm
by hc
What is the best way to encrypt a backup of a hole file system.
I want to use AEScrypt to back up (by providing a different output destination) and encrypt my files.

on linux, is there a command that would encrypt all files recursive with the same password?

as an example I want to copy encrypt

/home/folderA/
/home/folderB/file1.txt
/home/folderC/file2.txt
/home/file3.txt

to

/bacuplocation/folderA/
/bacuplocation/folderB/file1.txt.aes
/bacuplocation/folderC/file2.txt.aes
/bacuplocation/file3.txt.aes


I was thinking something along the lines

Code: Select all

$ aescrypt -e /home/* /bacuplocation/
But this would probably mess up the file names on the destination or??

any advice is appreciated
and thanks for a nice encryption tool!

Re: best practice for encryption of file tree

Posted: Fri Jan 30, 2015 8:46 am
by paulej
You can easily encrypt multiple files with the same password, but AES Crypt will not traverse subdirectories.

I encrypt entire directories by using tar. For example:

Code: Select all

tar -czvf - dirname/ | aescrypt -e -p apples -o dirname.tgz.aes -
Of course, you have to decrypt the entire archive to get at a single file. And, it's not useful if editing files constantly.