I am redesigning my storage structure. Here is my current design (I follow winnielinnie's format to present)
I have tried
The result becomes
- pool1 <--- non encryption pool
- root <--- the root dataset for normal data
- dataset1 <--- inherited, no encryption scheme
- securedata <--- encryption scheme, unlocked by passphrase (can be "locked")
- dataset2 <--- inherited encryption scheme, inherits the same passphrase as "securedata"
- dataset4 <--- inherited encryption scheme, inherits the same passphrase as "securedata"
- dataset5 <--- inherited encryption scheme, inherits the same passphrase as "securedata
- dataset3 <--- inherited encryption scheme, inherits the same passphrase as "securedata"
- dataset2 <--- inherited encryption scheme, inherits the same passphrase as "securedata"
- secureroot <--- New dataset, encryption scheme, unlocked by passphrase (can be "locked")
- root <--- the root dataset for normal data
- pool1 <--- non encryption pool
- root <--- the root dataset for normal data
- dataset1 <--- inherited, no encryption scheme
- secureroot <--- New dataset, encryption scheme, unlocked by passphrase (can be "locked")
- dataset2 <--- inherited encryption scheme, inherits the same passphrase as "secureroot"
- dataset4 <--- inherited encryption scheme, inherits the same passphrase as "securedata
- dataset5 <--- inherited encryption scheme, inherits the same passphrase as "securedata
- dataset3 <--- inherited encryption scheme, inherits the same passphrase as "secureroot"
- dataset2 <--- inherited encryption scheme, inherits the same passphrase as "secureroot"
- root <--- the root dataset for normal data
However, I don't know the next step.zfs snap -r pool1@snap1
I have tried
zfs send -v -w -R pool1/root/securedata/dataset2@snap1 | zfs recv -v -d -F pool1/secureroot
The result becomes
- pool1 <--- non encryption pool
- root <--- the root dataset for normal data
- dataset1 <--- inherited, no encryption scheme
- securedata <--- encryption scheme, unlocked by passphrase (can be "locked")
- dataset2 <--- inherited encryption scheme, inherits the same passphrase as "securedata"
- dataset3 <--- inherited encryption scheme, inherits the same passphrase as "securedata"
- secureroot <--- New dataset, encryption scheme, unlocked by passphrase (can be "locked")
- root <--- the root dataset for normal data
- securedata <--- encryption scheme, unlocked by passphrase (can be "locked")
- dataset2 <--- inherited encryption scheme, inherits the same passphrase as "securedata"
- dataset4 <--- inherited encryption scheme, inherits the same passphrase as "securedata
- dataset5 <--- inherited encryption scheme, inherits the same passphrase as "securedata
- dataset2 <--- inherited encryption scheme, inherits the same passphrase as "securedata"
- securedata <--- encryption scheme, unlocked by passphrase (can be "locked")
- root <--- the root dataset for normal data
- root <--- the root dataset for normal data