GPG encrypted backups to rsync.net

2016/11/28 by Paulo Pereira

~/categories/Linux #Linux #Arch Linux #rsync.net #gpg

I use rsync.net for my cloud/offline backups.

Here’s how to do gpg encrypted backups.

mkdir -p /home/your_user/rsync.net/
sshfs 99999@server.rsync.net: /home/your_user/rsync.net/
mkdir -p /home/your_user/rsync.net/backups/
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
mkdir -p /tmp/extract
cd /tmp/extract
gpg -o- /tmp/2016-11-28_my_dir.tgz.gpg | tar zxvf -
fusermount -u /home/your_user/rsync.net/