man: zfs-rollback.8: import examples from zfs.8

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13228
This commit is contained in:
наб 2022-03-16 18:44:25 +01:00 committed by Brian Behlendorf
parent c6fd08797f
commit 9bda775bd9
2 changed files with 13 additions and 1 deletions

View File

@ -29,7 +29,7 @@
.\" Copyright 2018 Nexenta Systems, Inc.
.\" Copyright 2019 Joyent, Inc.
.\"
.Dd May 27, 2021
.Dd March 16, 2022
.Dt ZFS-ROLLBACK 8
.Os
.
@ -71,5 +71,16 @@ option to force an unmount of any clone file systems that are to be destroyed.
Destroy any snapshots and bookmarks more recent than the one specified.
.El
.
.Sh EXAMPLES
.\" These are, respectively, examples 8 from zfs.8
.\" Make sure to update them bidirectionally
.Ss Example 8 : No Rolling Back a ZFS File System
The following command reverts the contents of
.Ar pool/home/anne
to the snapshot named
.Ar yesterday ,
deleting all intermediate snapshots:
.Dl # Nm zfs Cm rollback Fl r Ar pool/home/anne Ns @ Ns Ar yesterday
.
.Sh SEE ALSO
.Xr zfs-snapshot 8

View File

@ -301,6 +301,7 @@ if invalid command line options were specified.
.Sh EXAMPLES
.\" Examples 1, 4, 6, 14, 16 are shared with zfs-set.8.
.\" Examples 5 are shared with zfs-list.8.
.\" Examples 8 are shared with zfs-rollback.8.
.\" Examples 9, 10 are shared with zfs-clone.8.
.\" Examples 12, 13 are shared with zfs-send.8.
.\" Examples 12, 13 are also shared with zfs-receive.8.