@@ -24,28 +24,27 @@ Scheduling:
2424-------------
2525I recommend scheduling this using [ systemd timers] ( https://wiki.archlinux.org/index.php/Systemd/Timers ) .
2626
27- You can find some example ` .timer ` files in the examples directory of this repo.
27+ You can find some example ` .timer ` files in the ` timers/ ` directory of this repo. They will be installed when you run ` make install ` .
2828
29- Copy the ` .timer ` and corresponding ` .service ` file to ` /etc/systemd/system/ ` :
3029```
31- cp -f -v *.timer *.service /etc/systemd/system/
32- ```
33- Then enable the timers as follows:
30+ You can enable the timers as follows:
3431```
3532sudo systemctl daemon-reload
3633sudo systemctl start zfs-auto-hourly.timer && sudo systemctl enable zfs-auto-hourly.timer
3734sudo systemctl start zfs-auto-daily.timer && sudo systemctl enable zfs-auto-daily.timer
3835sudo systemctl start zfs-auto-weekly.timer && sudo systemctl enable zfs-auto-weekly.timer
3936```
4037
38+ If you wish to edit the timers, you will find them in the `/etc/systemd/system/` directory.
39+
4140
4241Managing Which Pools to Snapshot
4342-------------
4443By default, the script will snapshot all pools automatically, unless they have the `com.sun:auto-snapshot` property set to `false`.
4544
46- To check whether a pool has this property set, run the following command (where ` archive ` is the pool name) :
45+ To check the status of this property for all of your pools and datasets, run the following command :
4746```
48- sudo zfs get com.sun:auto-snapshot archive
47+ sudo zfs get com.sun: auto-snapshot
4948```
5049
5150If you see an output like the following, then snapshots are enabled on this pool:
@@ -64,3 +63,8 @@ We can check with `zfs get` again, and this time our output should look like the
6463NAME PROPERTY VALUE SOURCE
6564archive com.sun: auto-snapshot false local
6665```
66+
67+ To disable snapshots on a single dataset, the command is very similar:
68+ ```
69+ sudo zfs set com.sun: auto-snapshot =false archive/dataset
70+ ```
0 commit comments