Backups using ecryptfs and rsync.net
I use rsync.net for my cloud/offline backups.
Here’s how to do encrypted backups using ecryptfs.
- Install
ecryptfs-utils
1sudo pacman -S ecryptfs-utils
- Generate a passphrase
1ecryptfs-setup-private --nopwcheck --noautomount
- Mount rsync.net using
sshfsand create a backup folder
1mkdir -p /home/your_user/rsync.net/
2sshfs 99999@server.rsync.net: /home/your_user/rsync.net/
3mkdir -p /home/your_user/rsync.net/backups/
- Mount the backups folder as an encrypted filesystem and copy some files
1sudo 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
1sudo umount ~/Private
2fusermount -u /home/your_user/rsync.net/