Skip to content

Commit 29be1c3

Browse files
committed
installation steps added
1 parent ad9a32d commit 29be1c3

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,24 @@ make install
3232
As suggested by [Brian Koopman][bkoop] this target uses [systemd-timers][dtim]
3333
instead 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

0 commit comments

Comments
 (0)