Usual commit

This commit is contained in:
FSNotes App
2023-07-14 14:01:23 +02:00
parent a412f19c20
commit 8c27dd39b3
197 changed files with 4139 additions and 0 deletions

19
2021/zfs-snapshots.md Normal file
View File

@ -0,0 +1,19 @@
# ZFS snapshots
```
pkg install zfstools
```
```
zfs set com.sun:auto-snapshot=true zroot/data/syncthing
zfs set snapdir=visible zroot/data/syncthing
```
```
15,30,45 * * * * /usr/local/sbin/zfs-auto-snapshot frequent 4
0 * * * * /usr/local/sbin/zfs-auto-snapshot hourly 24
7 0 * * * /usr/local/sbin/zfs-auto-snapshot daily 14
14 0 * * 7 /usr/local/sbin/zfs-auto-snapshot weekly 12
28 0 1 * * /usr/local/sbin/zfs-auto-snapshot monthly 24
*/20 * * * * /usr/local/sbin/zfs-cleanup-snapshots
```