I use rsync.net for my cloud/offline backups. Here’s how to do gpg encrypted backups. Mount rsync.net using sshfs and create a backup folder mkdir -p /home/your_user/rsync.net/ sshfs firstname.lastname@example.org: /home/your_user/rsync.net/ mkdir -p /home/your_user/rsync.net/backups/ Create and encript a directory tar –xattrs -czpvf /tmp/2016-11-28_my_dir.tgz -C /home/your_user/my_dir . gpg –cipher-algo aes256 -c -o /home/your_user/rsync.net/backups/2016-11-28_my_dir.tgz.gpg /tmp/2016-11-28_my_dir.tgz Restore and decrypt a directory mkdir -p /tmp/extract cd /tmp/extract gpg -o- /tmp/2016-11-28_my_dir.tgz.gpg | tar zxvf - Unmount rsync.
I use rsync.net for my cloud/offline backups. Here’s how to do encrypted backups using ecryptfs. Install ecryptfs-utils sudo pacman -S ecryptfs-utils Generate a passphrase ecryptfs-setup-private –nopwcheck –noautomount Mount rsync.net using sshfs and create a backup folder mkdir -p /home/your_user/rsync.net/ sshfs email@example.com: /home/your_user/rsync.net/ mkdir -p /home/your_user/rsync.net/backups/ Mount the backups folder as an encrypted filesystem and copy some files sudo mount -t ecryptfs ~/.Private /home/your_user/rsync.
In a previous post I talked about how to backup to rsync.net using duplicity. I will now show how to backup your B3 Server Mysql databases using the same method. Installation Be sure duplicity is installed: su apt-get install duplicity Generate an ssh key to connect to rsync.net Generate the ssh key using the defaults (don’t use a password when asked): ssh-keygen -t rsa Copy your key to rsync.
If you don’t do backups… well, you should. An example of a good backup system could be: External drive backups: your computer is backed up at an external drive; CD/DVD backups: burn your backups to a CD or DVD; Offsite backups: your backups are located at a different site, ie, another place other than your home or office. A good idea is to have all three backup systems in place.