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 99999@server.rsync.net: /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.net/backups -o key=passphrase,ecryptfs_cipher=aes,ecryptfs_key_bytes=24,ecryptfs_passthrough=n,ecryptfs_enable_filename_crypto=n
  • Unmount rsync.net and the encrypted filesystem mount
sudo umount ~/Private
fusermount -u /home/your_user/rsync.net/