summaryrefslogtreecommitdiff
path: root/filesystems/zfstools/files
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2024-09-27 12:48:46 +0200
committerRobert Clausecker <fuz@FreeBSD.org>2024-11-06 16:17:35 +0100
commit6e2da9672f79f44048d597f0f61e4646cdeade9d (patch)
treec92e4b3158e3419e8cec38e00227d08dcdaab3e9 /filesystems/zfstools/files
parentmath/sdpa: speed up build (diff)
filesystems: add new category for file systems and related utilities
The filesystems category houses file systems and file system utilities. It is added mainly to turn the sysutils/fusefs-* pseudo-category into a proper one, but is also useful for the sundry of other file systems related ports found in the tree. Ports that seem like they belong there are moved to the new category. Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are not moved as they currently don't fetch and don't have TIMESTAMP set in their distinfo, but that is required to be able to push a rename of the port by the pre-receive hook. Approved by: portmgr (rene) Reviewed by: mat Pull Request: https://github.com/freebsd/freebsd-ports/pull/302 PR: 281988
Diffstat (limited to 'filesystems/zfstools/files')
-rw-r--r--filesystems/zfstools/files/pkg-message.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/filesystems/zfstools/files/pkg-message.in b/filesystems/zfstools/files/pkg-message.in
new file mode 100644
index 000000000000..6df0d4d832a2
--- /dev/null
+++ b/filesystems/zfstools/files/pkg-message.in
@@ -0,0 +1,32 @@
+[
+{ type: install
+ message: <<EOM
+To enable automatic snapshots, place lines such as these into /etc/crontab:
+
+ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
+ 15,30,45 * * * * root %%PREFIX%%/sbin/zfs-auto-snapshot frequent 4
+ 0 * * * * root %%PREFIX%%/sbin/zfs-auto-snapshot hourly 24
+ 7 0 * * * root %%PREFIX%%/sbin/zfs-auto-snapshot daily 7
+ 14 0 * * 7 root %%PREFIX%%/sbin/zfs-auto-snapshot weekly 4
+ 28 0 1 * * root %%PREFIX%%/sbin/zfs-auto-snapshot monthly 12
+
+This will keep 4 15-minutely snapshots, 24 hourly snapshots, 7 daily snapshots,
+4 weekly snapshots and 12 monthly snapshots. Any resulting zero-sized snapshots
+will be automatically cleaned up.
+
+Enable snapshotting on a dataset or top-level pool with:
+
+ zfs set com.sun:auto-snapshot=true DATASET
+
+Children datasets can be disabled for snapshot with:
+
+ zfs set com.sun:auto-snapshot=false DATASET
+
+Or for specific intervals:
+
+ zfs set com.sun:auto-snapshot:frequent=false DATASET
+
+See website and command usage output for further details.
+EOM
+}
+]