forked from hacc/haccfiles
stuebinm
41d82ae436
we decided to: - get rid of unused packages - simpify the directory layout since we only have one host anyways - move our docs (such as they are) in-tree
24 lines
457 B
Markdown
24 lines
457 B
Markdown
+++
|
|
title = "Use ZFS snapshot"
|
|
taxonomies.categories = [ "zfs", "snapshot", "filesystem", "backup", "update", "upgrade" ]
|
|
+++
|
|
|
|
## Make a ZFS snapshot
|
|
~~~shell
|
|
sudo zfs snapshot zroot/safe/persist@<name>
|
|
~~~
|
|
|
|
## Rollback
|
|
|
|
### single files
|
|
The snapshots can be accessed under `<mountpoint>/.zfs/snapshot/...`
|
|
|
|
### fully
|
|
~~~shell
|
|
sudo zfs rollback zroot/safe/persist@<name>
|
|
~~~
|
|
|
|
## Delete a ZFS snapshot
|
|
~~~shell
|
|
sudo zfs destroy zroot/safe/persist@<name>
|
|
~~~
|