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 99999@server.rsync.net: /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.net
fusermount -u /home/your_user/rsync.net/