-
Notifications
You must be signed in to change notification settings - Fork 1
Home
nanch edited this page Mar 30, 2013
·
15 revisions
Follow these simple steps to backing up your linux system!
Go to https://tarbackup.com and create an account for free.
mkdir /backups
tar -cvpzf /backups/fullbackup.tar.gz --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=backups .
first you have to create your secret key so that nobody can ever see your backed up files. This ensures security on your end and my end. You have to keep this key in a safe place on a usb drive, other computer, or in your email. If you have a crash and you lose the key, you can't restore your files!
create your secret key
echo mysupersecretkey > /backups/key
or
# dd if=/dev/urandom bs=1024 count=1 | base64 > /backups/key
encrypt your backup with openssl (the command to decrypt is in the "Restoring your data" section)
openssl enc -aes-256-cbc -salt -in fullbackup.tar.gz -out fullbackup.tar.gz.enc -pass file:/backups/key
cd /backups
sftp [email protected]:/storage/
> put fullbackup.tar.gz.enc
> quit
mkdir /restores
cd /restores
sftp [email protected]
> get fullbackup.tar.gz.enc
> quit
openssl enc -d -aes-256-cbc -in fullbackup.tar.gz.enc -out fullbackup.tar.gz -pass file:/path/to/secret/password.txt
tar -xvzf fullbackup.tar.gz -C /
2013-09-12 http://www.reddit.com/r/linux/comments/zt1md/hey_linux_im_making_a_free_linux_backup_service/