Currently I am discovering the usage of Snapshot and Replication Task.
In my testing, it seems that Snapshot can only able to rollback any changes of that Dataset.
If I have to restore a deleted Dataset, I can only use Replication since the Snapshot of the Dataset are also deleted.
The following are what I have tried:
1st Snapshot
testpool\dataset1
2nd Snapshot
testpool\dataset1
testpool\dataset1\directoryA
3rd Snapshot
testpool\dataset1
testpool\dataset1\directoryA
testpool\dataset1\directoryA\documentAA
4th Snapshot
testpool\dataset1
testpool\dataset1\directoryA
testpool\dataset1\directoryA\documentAA
testpool\dataset1\documentB
After taken the 4th Snapshot, I deleted documentB and documentAA.
If I rollback using 4th Snapshot of testpool\dataset1, both the documentB and documentAA are back.
If I rollback using 3rd Snapshot of testpool\dataset1, documentB will disppear. 4th Snapshot will be deleted.
If I rollback using 2nd Snapshot of testpool\dataset1, both the documentAA and documentB will disppear. 3rd Snapshot and 4th Snapshot will be deleted.
If I rollback using 1st Snapshot of testpool\dataset1, nothing will remain. Other Snapshot will be deleted.
If I delete dataset1, all the Snapshot will be deleted.
Besides, I redo the above procedure and add a new dataset, such that:
5th Snapshot
testpool\dataset1
testpool\dataset1\directoryA
testpool\dataset1\directoryA\documentAA
testpool\dataset1\documentB
testpool\dataset1\dataset12
If I try to rollback using 4th Snapshot, it will show error as there are new child dataset.
testpool\dataset1
testpool\dataset1\directoryA
testpool\dataset1\directoryA\documentAA
testpool\dataset1\documentB
testpool\dataset1\dataset12
I delete dataset1, and try to rollback using 5th Snapshot of testpool\dataset1, I get
testpool\dataset1
testpool\dataset1\directoryA
testpool\dataset1\directoryA\documentAA
testpool\dataset1\documentB
testpool\dataset1\dataset12
The dataset dataset12 become a directory dataset12...
In my testing, it seems that Snapshot can only able to rollback any changes of that Dataset.
If I have to restore a deleted Dataset, I can only use Replication since the Snapshot of the Dataset are also deleted.
The following are what I have tried:
1st Snapshot
testpool\dataset1
2nd Snapshot
testpool\dataset1
testpool\dataset1\directoryA
3rd Snapshot
testpool\dataset1
testpool\dataset1\directoryA
testpool\dataset1\directoryA\documentAA
4th Snapshot
testpool\dataset1
testpool\dataset1\directoryA
testpool\dataset1\directoryA\documentAA
testpool\dataset1\documentB
After taken the 4th Snapshot, I deleted documentB and documentAA.
If I rollback using 4th Snapshot of testpool\dataset1, both the documentB and documentAA are back.
If I rollback using 3rd Snapshot of testpool\dataset1, documentB will disppear. 4th Snapshot will be deleted.
If I rollback using 2nd Snapshot of testpool\dataset1, both the documentAA and documentB will disppear. 3rd Snapshot and 4th Snapshot will be deleted.
If I rollback using 1st Snapshot of testpool\dataset1, nothing will remain. Other Snapshot will be deleted.
If I delete dataset1, all the Snapshot will be deleted.
Besides, I redo the above procedure and add a new dataset, such that:
5th Snapshot
testpool\dataset1
testpool\dataset1\directoryA
testpool\dataset1\directoryA\documentAA
testpool\dataset1\documentB
testpool\dataset1\dataset12
If I try to rollback using 4th Snapshot, it will show error as there are new child dataset.
testpool\dataset1
testpool\dataset1\directoryA
testpool\dataset1\directoryA\documentAA
testpool\dataset1\documentB
testpool\dataset1\dataset12
I delete dataset1, and try to rollback using 5th Snapshot of testpool\dataset1, I get
testpool\dataset1
testpool\dataset1\directoryA
testpool\dataset1\directoryA\documentAA
testpool\dataset1\documentB
testpool\dataset1\dataset12
The dataset dataset12 become a directory dataset12...