From 9bda775bd952b1863abda57429f9c2044ae078b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Wed, 16 Mar 2022 18:44:25 +0100 Subject: [PATCH] man: zfs-rollback.8: import examples from zfs.8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #13228 --- man/man8/zfs-rollback.8 | 13 ++++++++++++- man/man8/zfs.8 | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) 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.