meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:fs:zfs:auto_snapshots [2021/02/14 20:20] – created niziak | linux:fs:zfs:auto_snapshots [2023/12/05 16:03] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== ZFS auto snapshots ====== | + | ====== ZFS snapshots ====== |
| + | |||
| + | <code bash> | ||
| + | zfs list -t snapshot | ||
| + | </ | ||
| + | |||
| + | ===== get space used by snapshots ===== | ||
| + | |||
| + | <code bash> | ||
| + | zfs list -o space | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== destroy snapshots ===== | ||
| + | |||
| + | Destroy all snapshots contains '' | ||
| + | <code bash> | ||
| + | zfs list -H -t snapshot -o name | grep 2022 | xargs -n1 zfs destroy | ||
| + | </ | ||
| + | |||
| + | ===== Tools ===== | ||
| + | |||
| + | ==== zfs-auto-snapshot ==== | ||
| + | |||
| + | Automatically create, rotate, and destroy periodic ZFS snapshots. | ||
| + | |||
| + | Exclude from snapshot: | ||
| + | <code bash> | ||
| + | zfs set com.sun: | ||
| + | zfs set com.sun: | ||
| + | zfs set com.sun: | ||
| + | </ | ||
| <code bash> | <code bash> | ||
| sudo apt-get install zfs-auto-snapshot | sudo apt-get install zfs-auto-snapshot | ||
| </ | </ | ||
| + | |||
| + | ==== pyznap ==== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ==== zsnapd ==== | ||
| + | [[https:// | ||
| + | |||
| + | Advanced. Can send snapshot to another machine. | ||
| + | |||
| + | ==== zfsnap ==== | ||
| + | [[https:// | ||
| + | |||
| + | ====== GUIs ====== | ||
| + | |||
| + | ===== snapshot-explorer ===== | ||
| + | |||
| + | < | ||
| + | |||
| + | ===== snapper ===== | ||
| + | |||
| + | It is snapshot GUI for BTRFS. But there is a experimental [[https:// | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ===== zgui ===== | ||
| + | |||
| + | [[https:// | ||
| + | <code bash> | ||
| + | sudo apt-get install golang-go libzfslinux-dev | ||
| + | |||
| + | |||
| + | go get gitlab.com/ | ||
| + | </ | ||
| + | |||