zfs external backup drive with snapshot and encryption
Get device id
$ ls /dev/disk/by-id -alh
...
lrwxrwxrwx 1 root root 10 okt 24 06:06 ata-WDC_WD10EZEX-08M2NA0_WD-WMC3F1471486-part4 -> ../../sda4
...Setup disk encryption with LUKS
$ sudo apt install cryptsetup
$ cryptsetup luksFormat --cipher aes-xts-plain64 --key-size 512 --iter-time 10000 --use-random -y /dev/disk/by-id/ata-WDC_WD10EZEX-08M2NA0_WD-WMC3F1471486-part4Create new zfs pool
Create initial snapshot
Send the backup
Safely close and remove external drive
Last updated