Project

General

Profile

Actions

Feature #3185

open

RFE: ZFS: recursive creation of clones from existing recursive snapshots

Added by Jim Klimov about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2012-09-13
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

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

Actions

Also available in: Atom PDF