RFE: ZFS: recursive creation of clones from existing recursive snapshots
Sometimes it is needed to clone a hierarchy of datasets, such as those holding a local zone.
The "zfs" command has "-r" options for "snapshot" and "destroy" actions, among others, but not for "clone" (as of oi_151a5).
I propose to implement a "zfs clone -r baseds1@snapshotname baseds2" which would walk the children datasets under "baseds1", find those with snapshots named "snapshotname" and create their clones in a similar hierarchy under "baseds2".
Absence of the named snapshot in some of the child datasets is not an error, unless a deeper-level sub-child has this named snapshot again. In this case the command should probably abort with error and tell the user what to do (i.e. create the named snapshot of an intermediate dataset), and/or allow a forced mode which would create an empty dataset under "baseds2" as a nesting point for sub-children which do have the named snapshot.
No data to display