File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed
Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,24 @@ make install
3232As suggested by [ Brian Koopman] [ bkoop ] this target uses [ systemd-timers] [ dtim ]
3333instead of cron.
3434
35- ```
36- wget https://github.com/gaerfield/zfs-auto-snapshot/archive/master.zip
37- unzip master.zip
38- cd zfs-auto-snapshot-master
39- make systemd
40- ```
35+ 1 ) install the scripts:
36+ ```
37+ wget https://github.com/gaerfield/zfs-auto-snapshot/archive/master.zip
38+ unzip master.zip
39+ cd zfs-auto-snapshot-master
40+ make systemd
41+ ```
42+ 2) optionally edit `zfs-auto-snapshot-frequent.timer` to snapshot more often and `zfs-auto-snapshot-frequent.service` to keep more snapshots
43+ 3) enable zfs snapshots: `zfs set com.sun:auto-snapshot=true pool/dataset`
44+ 4) enable timers:
45+ ```
46+ systemctl enable zfs-auto-snapshot-daily.timer
47+ systemctl enable zfs-auto-snapshot-frequent.timer
48+ systemctl enable zfs-auto-snapshot-hourly.timer
49+ systemctl enable zfs-auto-snapshot-daily.timer
50+ systemctl enable zfs-auto-snapshot-weekly.timer
51+ systemctl enable zfs-auto-snapshot-monthly.timer
52+ ```
4153
4254[bkoop]: https://briankoopman.com/zfs-automated-snapshots/
4355[dtim]: https://wiki.archlinux.org/index.php/Systemd/Timers
You can’t perform that action at this time.
0 commit comments