Working with zfs snapshots and encryption

Hello,

I’m using to having a encrypted password for the root dataset. My question is how does one unpack snapshots for an encrypted dataset on a different machine? Where I’m coming from is that I have one machine where I do the magic zfs send and zfs receive and that works fine. However on the destination machine I use a different encrypted password and I don’t know how I would view the contents of the snapshots there.

Is it an intended workflow or is it intended for snapshots to both be viewed and applied ONLY for the local machine and all transit machines can’t unpack the data IF it has the correct encrypted password? My goal is to grab older files remotely in the snapshots.

Both filesystems are active, the data arrives at your encrypted target and gets encrypted for storage. Oracle says:
By default, the zfs send command transfers encrypted data blocks by first decrypting the data on the source and then re-encrypting the data on the target. Note that the data blocks are re-encrypted only if encryption is enabled for the target.

You send the data to another machine with different security settings, the data becomes the responsibility of that target system with its encryption (or not) and access control (or not). It’s no longer about the source machine … unless you do what the link says you could also do, and send encrypted snapshots that stay encrypted.

K3n.

1 Like