Recovering your system using a ZFS snapshot involves rolling back to the state of the system when the snapshot was taken. This process can vary depending on what exactly has "fucked up" in your system. Here's a general guide on how to recover:
- Accessing the System: If your system is still bootable, log in as usual. If it's not bootable, you might need to boot from a live CD/USB that supports ZFS. If using a live environment, you may need to manually import your ZFS pool with zpool import.
- Identifying the Snapshot: List available snapshots with zfs list -t snapshot. Find the snapshot you want to roll back to. It will be named something like rpool@snapshot1 if you followed standard naming conventions.
- Rolling Back to the Snapshot: Use the zfs rollback command. Be aware that this will destroy all data written to the pool after the snapshot was taken. The command is zfs rollback rpool@snapshot1.