/ /@morais_afonso https:/unsplash.com/photos/JXgdQzexK9M

Encrypting ZFS Filesystem

Create the encryption key with random

sudo dd if=/dev/random of=/media/usb_with_keys/macbookpro.key bs=1 count=32
sudo zfs create timemachine/jason/macbookpro \
  -o mountpoint=/mnt/timemachine/jason/macbookpro \
  -o compression=on \
  -o quota=1T \
  -o encryption=aes-256-gcm \
  -o keyformat=raw \
  -o keylocation=file:///media/usb_with_keys/macbookpro.key