zfs auto snapshot
Having ZFS snapshot saved me once when I acidentally rm -f /home/myuser.
There is a simple package that easily make auto snapshot.
1
$ sudo apt install zfs-auto-snapshot
Copied!
This will install the script and the cron job associated with it.
By default it will backup all filesystem and volumes. You can disable the filesystems completely by
1
$ sudo zfs set com.sun:auto-snapshot=false tank/data-set-name
Copied!
or only for specific interval
1
sudo zfs set com.sun:auto-snapshot=true tank/data-set-name
2
sudo zfs set com.sun:auto-snapshot:monthly=false tank/data-set-name
3
sudo zfs set com.sun:auto-snapshot:weekly=false tank/data-set-name
4
sudo zfs set com.sun:auto-snapshot:daily=true tank/data-set-name
5
sudo zfs set com.sun:auto-snapshot:hourly=false tank/data-set-name
6
sudo zfs set com.sun:auto-snapshot:frequent=false tank/data-set-name
Copied!
Last modified 1mo ago
Copy link