Sep 232012

From tarbackup

In a nutshell, the tarbackup service is more or less a free private SFTP server for people to put their encrypted backups on. If you have a crash or fire, you can download your backup, decrypt it, and restore it.

Go to and create an account for free.

Backup your system

mkdir /backups
tar -cvpzf /backups/fullbackup.tar.gz --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=backups .

Encrypt the tar file
To encrypt your backup, you need a secret key. You need to keep this key safe on a usb drive or in your email. You can’t restore your files without the key!
Create your secret encryption key

echo mysupersecretkey > /backups/key

Encrypt your backup with openssl

openssl enc -aes-256-cbc -salt -in fullbackup.tar.gz -out fullbackup.tar.gz.enc -pass file:/backups/key

Upload your backup to

cd /backups
sftp [email protected]:/storage/
put fullbackup.tar.gz.enc


Restoring your data

Download your data from tarbackup via sftp

mkdir /restores
cd /restores
sftp [email protected]:/storage/
get fullbackup.tar.gz.enc

Decrypt the file

openssl enc -d -aes-256-cbc -in fullbackup.tar.gz.enc -out fullbackup.tar.gz -pass file:/path/to/secret/password.txt

Extract your data

tar -xvzf fullbackup.tar.gz -C /

From tarbackup

Share This!
 Posted by at 1:37 pm

Sorry, the comment form is closed at this time.