<syntaxhighlight lang="bash">
zfs create data/encrypted -o mountpoint=/data -o encryption=aes-256-gcm -o keyformat=passphrase -o compression=lz4
</syntaxhighlight>
Disable access time updates (improves performance when reading lots of small files - e.g when using find)
<syntaxhighlight lang="bash">
zfs set atime=off data
</syntaxhighlight>