-
After reading the docs, this is the command I arrived at:
I would basically like to pull an encrypted dataset from that particular IP to an identical (not yet existing) local dataset. This should work whether the source has currently loaded the decryption key or not. The target dataset should be encrypted with the very same key. Will this command do that? If not, is it possible? Any hints are welcome. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
No, this command will decrypt everything on the sending side before it's sent to the target. This should work: syncoid --recursive --compress lz4 --sendoption=w root@xxx.xxx.xxx.xxx:sixer/Documents rpool/Documents But this will break the encryptionroot on the receiving side. |
Beta Was this translation helpful? Give feedback.
-
I think I know what you meant. On the target side rpool has not got encryption enabled. There is however rpool/data-encrypted which has encryption enabled and so should rpool/Documents |
Beta Was this translation helpful? Give feedback.
-
Perfect! I just googled and checked my pools with: I understood and noticed I have only a few encrypted datasets and they are all independent. |
Beta Was this translation helpful? Give feedback.
-
@phreaker0 one last question: where did you find out about "--sendoption=w" as I can't see it mentioned anywhere on the wiki. |
Beta Was this translation helpful? Give feedback.
No, this command will decrypt everything on the sending side before it's sent to the target.
You want to lookup the "raw" flag which will do what you are looking for: https://openzfs.github.io/openzfs-docs/man/8/zfs-send.8.html#w
This should work:
syncoid --recursive --compress lz4 --sendoption=w root@xxx.xxx.xxx.xxx:sixer/Documents rpool/Documents
But this will break the encryptionroot on the receiving side.