zfs:snapshots:rollback_a_snapshot
ZFS - Snapshots - Rollback a Snapshot
WARNING: This will revert all changes made since a specific snapshot.
sudo zfs rollback testpool/some_directory@sunday
NOTE: Once the rollback is completed, you can verify the files present in the directory.
Snapshot Rollback Test
Destroy all the files and then roll back:
sudo zfs snapshot testpool/some_directory@sunday rm -rf testpool/some_directory sudo zfs rollback testpool/some_directory@sunday
zfs/snapshots/rollback_a_snapshot.txt · Last modified: 2021/10/13 12:16 by peter