table of contents
- bookworm 2.1.11-1
- bookworm-backports 2.2.6-1~bpo12+3
- testing 2.2.6-2
- unstable 2.2.6-2
ZFS-ROLLBACK(8) | 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
snapshot 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 recursive snapshot. Only direct snapshots of the
specified filesystem are destroyed by either of these options. To completely
roll back a recursive snapshot, you must roll back the individual child
snapshots.
EXAMPLES¶
Example 8: Rolling Back a ZFS File System¶
The following command reverts the contents of pool/home/anne to the snapshot named yesterday, deleting all intermediate snapshots:
# zfs
rollback
-r
pool/home/anne@yesterday
SEE ALSO¶
March 16, 2022 | OpenZFS |