]> git.proxmox.com Git - mirror_zfs.git/commitdiff
man: zfs-rollback.8: import examples from zfs.8
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Wed, 16 Mar 2022 17:44:25 +0000 (18:44 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 28 Mar 2022 17:13:14 +0000 (10:13 -0700)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13228

man/man8/zfs-rollback.8
man/man8/zfs.8

index 08e914b476592d23832417524eecb57a98eb6293..0ec612888584ee26f29fe796b8a629966cd4832e 100644 (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
index b7385eddedb85d5d5dc52edfbcaebf088a105c17..f103278a01b2b34ee66a45dfd2beab44faa9339d 100644 (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.