best practice for encryption of file tree

Discussion related to AES Crypt, the file encryption software for Windows, Linux, Mac, and Java.
Post Reply
hc
Posts: 1
Joined: Thu Jan 29, 2015 1:31 pm

best practice for encryption of file tree

Post 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!
User avatar
paulej
Posts: 595
Joined: Sun Aug 23, 2009 7:32 pm
Location: Research Triangle Park, NC, USA
Contact:

Re: best practice for encryption of file tree

Post 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.
Post Reply