How to use zfs receive for encrypted datasets? #15158
-
|
My steps: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
Don't try to receive by destroying something on the receiver side? You appear to be trying to do something like When what you would want to do is |
Beta Was this translation helpful? Give feedback.
I know this is exceptionally old but I suspect I understand what hhb777 is trying to accomplish since I was trying to do the same thing.
You will want to destroy the existing encrypted dataset 'pool2/target' and then do a send and receive using override flags if youre trying to change the passphrase or key format or some other parameter as you move the pool.
As an example:
zfs create -o encryption=on -o keyformat=passphrase pool1/sourcezfs snapshot pool1/source@snap1zfs send -w pool1/source@snap1 | zfs receive -s -o encryption=on -o keyformat=passphrase pool2/target