Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
ZFS-ROLLBACK(8)		FreeBSD	System Manager's Manual	       ZFS-ROLLBACK(8)

NAME
     zfs-rollback -- roll ZFS dataset back to snapshot

SYNOPSIS
     zfs rollback [-Rfr] snapshot

DESCRIPTION
     When a dataset is rolled back, all	data that has changed since the	snap-
     shot is discarded,	and the	dataset	reverts	to the state at	the time of
     the snapshot.  By default,	the command refuses to roll back to a snapshot
     other than	the most recent	one.  In order to do so, all intermediate
     snapshots and bookmarks must be destroyed by specifying the -r option.

     The -rR options do	not recursively	destroy	the child snapshots of a re-
     cursive snapshot.	Only direct snapshots of the specified filesystem are
     destroyed by either of these options.  To completely roll back a recur-
     sive snapshot, you	must roll back the individual child snapshots.

     -R	 Destroy any more recent snapshots and bookmarks, as well as any
	 clones	of those snapshots.

     -f	 Used with the -R option to force an unmount of	any clone file systems
	 that are to be	destroyed.

     -r	 Destroy any snapshots and bookmarks more recent than the one speci-
	 fied.

SEE ALSO
     zfs-snapshot(8)

FreeBSD	13.0			 May 27, 2021			  FreeBSD 13.0

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=zfs-rollback&sektion=8&manpath=FreeBSD+13.1-RELEASE+and+Ports>

home | help