I have a single dataset that I am trying to move to a ZFS pool.
The Dataset itself does not contain data, but more datasets.
Each dataset contains constantly changing data, and as a precaution, a snapshot script was created for each of them.
Each dataset has hundreds if not thousands of snapshots. (Client did not want to merge snapshots, over time.)
What I am trying to do now, is copy the root dataset, and all of it's sub datasets and snapshots to a pool of their own.
How can I recursively copy vault/root to zpool2 and keep an identical copy of everything, including the snapshots?
The Dataset itself does not contain data, but more datasets.
Code:
vault/root 1.62T 8.08T 336K
vault/root/ds1 42.8G 8.08T 895M
vault/root/ds2 6.65G 8.08T 272M
vault/root/ds3 102M 8.08T 102M
vault/root/ds4 12.9G 8.08T 1.10G
vault/root/ds5 61.5G 8.08T 1005M
vault/root/ds6 316G 8.08T 3.70G
vault/root/ds7 99.0M 8.08T 99.0M
***
vault/root/ds31 30.0M 8.08T 30.0M
vault/root/ds32 13.0G 8.08T 314M
vault/root/ds33 33.6G 8.08T 5.31G
Each dataset contains constantly changing data, and as a precaution, a snapshot script was created for each of them.
Each dataset has hundreds if not thousands of snapshots. (Client did not want to merge snapshots, over time.)
What I am trying to do now, is copy the root dataset, and all of it's sub datasets and snapshots to a pool of their own.
How can I recursively copy vault/root to zpool2 and keep an identical copy of everything, including the snapshots?