You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can find some example `.timer` files in the `timers/` directory of this
44
+
repo. They will be installed when you run `make systemd`.
44
45
45
-
If you wish to edit the timers, you will find them in the `/usr/local/lib/systemd/system/` directory. Save the edited timers to `/etc/systemd/system/` directory.
46
+
If you wish to edit the timers, you will find them in the
47
+
`/usr/local/lib/systemd/system/` directory. Save the edited timers to
48
+
`/etc/systemd/system/` directory to override the default timers.
By default, the script will snapshot all pools automatically, unless they have the `com.sun:auto-snapshot` property set to `false`.
52
+
By default, the script will snapshot all pools automatically, unless they
53
+
have the `com.sun:auto-snapshot` property set to `false`.
54
54
55
-
To check the status of this property for all of your pools and datasets, run the following command:
56
-
```
55
+
To check the status of this property for all of your pools and datasets, run
56
+
the following command:
57
+
58
+
```sh
57
59
sudo zfs get com.sun:auto-snapshot
58
60
```
59
61
60
-
If you see an output like the following, then snapshots are enabled on this pool:
62
+
If you see an output like the following, then snapshots are enabled on this
63
+
pool:
64
+
61
65
```
62
66
NAME PROPERTY VALUE SOURCE
63
67
archive com.sun:auto-snapshot - -
64
68
```
65
69
66
70
To disable snapshots on this pool, issue the following command:
67
-
```
71
+
72
+
```sh
68
73
sudo zfs set com.sun:auto-snapshot=false archive
69
74
```
70
75
71
76
We can check with `zfs get` again, and this time our output should look like the following. If we see this, we know that snapshots have been disabled on this pool:
77
+
72
78
```
73
79
NAME PROPERTY VALUE SOURCE
74
80
archive com.sun:auto-snapshot false local
75
81
```
76
82
77
83
To disable snapshots on a single dataset, the command is very similar:
78
-
```
84
+
85
+
```sh
79
86
sudo zfs set com.sun:auto-snapshot=false archive/dataset
0 commit comments