Encrypting ZFS Filesystem

Improve this page

Published:

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