init snapshot.md
This commit is contained in:
parent
86d787a2d4
commit
00ffa1b004
1 changed files with 18 additions and 0 deletions
18
content/snapshots.md
Normal file
18
content/snapshots.md
Normal 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
|
Reference in a new issue