mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
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 <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Andriy Gapon <avg@FreeBSD.org> Closes #13802
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user