init snapshot.md

This commit is contained in:
schweby 2022-01-27 21:48:57 +01:00
parent 86d787a2d4
commit 00ffa1b004
Signed by: moira
GPG key ID: AF92FDD91CB44B2F

18
content/snapshots.md Normal file
View file

@ -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