Skip to content

Commit d7603c4

Browse files
committed
Added info about disabling for certain zpools
1 parent fb55521 commit d7603c4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,30 @@ sudo systemctl start zfs-auto-hourly.timer && sudo systemctl enable zfs-auto-hou
3737
sudo systemctl start zfs-auto-daily.timer && sudo systemctl enable zfs-auto-daily.timer
3838
sudo systemctl start zfs-auto-weekly.timer && sudo systemctl enable zfs-auto-weekly.timer
3939
```
40+
41+
42+
Managing Which Pools to Snapshot
43+
-------------
44+
By default, the script will snapshot all pools automatically, unless they have the `com.sun:auto-snapshot` property set to `false`.
45+
46+
To check whether a pool has this property set, run the following command (where `archive` is the pool name):
47+
```
48+
sudo zfs get com.sun:auto-snapshot archive
49+
```
50+
51+
If you see an output like the following, then snapshots are enabled on this pool:
52+
```
53+
NAME PROPERTY VALUE SOURCE
54+
archive com.sun:auto-snapshot - -
55+
```
56+
57+
To disable snapshots on this pool, issue the following command:
58+
```
59+
sudo zfs set com.sun:auto-snapshot=false archive
60+
```
61+
62+
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:
63+
```
64+
NAME PROPERTY VALUE SOURCE
65+
archive com.sun:auto-snapshot false local
66+
```

0 commit comments

Comments
 (0)