diff options
author | Andriy Gapon <[email protected]> | 2022-09-02 23:31:19 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2022-09-02 13:31:19 -0700 |
commit | ee9f3bca5574192589d7c7734fdc81b361aa77db (patch) | |
tree | c0e9bbb8314b9188bca19858ec3973f112a9b02c /man/man8/zfs-program.8 | |
parent | 7bb707ffafbea79c5b2f9ea24959825a3c4b8802 (diff) |
Add zfs.sync.snapshot_rename
Only the single snapshot rename is provided.
The recursive or more complex rename can be scripted.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Andriy Gapon <[email protected]>
Closes #13802
Diffstat (limited to 'man/man8/zfs-program.8')
-rw-r--r-- | man/man8/zfs-program.8 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/man/man8/zfs-program.8 b/man/man8/zfs-program.8 index 06415b219..928620362 100644 --- a/man/man8/zfs-program.8 +++ b/man/man8/zfs-program.8 @@ -424,6 +424,19 @@ To enable taking snapshots from ZCP scripts, the pool must be upgraded. .It Ar dataset Pq string Name of snapshot to create. .El +.It Fn zfs.sync.rename_snapshot dataset oldsnapname newsnapname +Rename a snapshot of a filesystem or a volume. +Returns 0 if the snapshot was successfully renamed, +and a nonzero error code otherwise. +.Pp +.Bl -tag -compact -width "newbookmark (string)" +.It Ar dataset Pq string +Name of the snapshot's parent dataset. +.It Ar oldsnapname Pq string +Original name of the snapshot. +.It Ar newsnapname Pq string +New name of the snapshot. +.El .It Fn zfs.sync.bookmark source newbookmark Create a bookmark of an existing source snapshot or bookmark. Returns 0 if the new bookmark was successfully created, |