diff --git a/man/man8/zfs-rollback.8 b/man/man8/zfs-rollback.8 index 08e914b476..0ec6128885 100644 --- a/man/man8/zfs-rollback.8 +++ b/man/man8/zfs-rollback.8 @@ -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 diff --git a/man/man8/zfs.8 b/man/man8/zfs.8 index b7385edded..f103278a01 100644 --- a/man/man8/zfs.8 +++ b/man/man8/zfs.8 @@ -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.