From 00ffa1b00431dd54d8f4dbf3e9e6db929ad0b40a Mon Sep 17 00:00:00 2001 From: schweby Date: Thu, 27 Jan 2022 21:48:57 +0100 Subject: [PATCH] init snapshot.md --- content/snapshots.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 content/snapshots.md diff --git a/content/snapshots.md b/content/snapshots.md new file mode 100644 index 0000000..5feac68 --- /dev/null +++ b/content/snapshots.md @@ -0,0 +1,18 @@ ++++ +title = "Use ZFS snapshot" +taxonomies.categories = [ "zfs", "snapshot", "filesystem", "backup", "update", "upgrade" ] ++++ + +## Make a ZFS snapshot +sudo zfs snapshot zroot/safe/persist@$name + +## Rollback + +### single files +The snapshots can be accessed under /mnt/.zfs/snapshot/$name/ + +### fully +sudo zfs rollback zroot/safe/persist@$name + +## Delete a ZFS snapshot +sudo zfs destroy zroot/safe/persist@$name