zfs list -t snapshot
zfs list -o space
Destroy all snapshots contains 2022
:
zfs list -H -t snapshot -o name | grep 2022 | xargs -n1 zfs destroy
Automatically create, rotate, and destroy periodic ZFS snapshots.
Exclude from snapshot:
zfs set com.sun:auto-snapshot=false rpool/BACKUP zfs set com.sun:auto-snapshot=false rpool/var/tmp zfs set com.sun:auto-snapshot=false rpool/var/log
sudo apt-get install zfs-auto-snapshot
Advanced. Can send snapshot to another machine.
https://github.com/niziak/snapshot-explorer
It is snapshot GUI for BTRFS. But there is a experimental zfs branch to support zfs.
https://gitlab.com/beteras/zgui
sudo apt-get install golang-go libzfslinux-dev go get gitlab.com/beteras/zgui