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