Secure remote backup

I want to backup a system to remote drive. I want all of my date to be encrypted before it leaves my local machine and stored encrypted. I do not want to store the files locally.

I am thinking about using some driver to remote mount a filesystem. Only the authentication needs to be encrypted not the data connection itself.

Then I could just use

tar -cj directory | openssl des3 -salt > /remote/encrypted.tarfile
cat /remote/encrypted.tarfile | openssl des3 -d -salt | tar -xjv


OpenSSL to encrypt a file

There are more elegant ways to do this, but when you need to encrypt a file from one point to another this works and the tool is almost always available.

<br />encrypt:<br />openssl enc -aes-256-cbc -a -salt -in file.txt -out file.enc<br />(password)<br /><br />decrypt:<br />openssl enc -d -aes-256-cbc -a -in file.enc -out file.txt<br />(password)<br />

OpenSSL Command-Line HOWTO