🐧 Backups using ecryptfs and rsync.net

2016/11/27 by Paulo Pereira

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

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

Here’s how to do encrypted backups using ecryptfs.

sudo pacman -S ecryptfs-utils
ecryptfs-setup-private --nopwcheck --noautomount
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/
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
sudo umount ~/Private
fusermount -u /home/your_user/rsync.net/