diff --git a/sysutils/zfstools/Makefile b/sysutils/zfstools/Makefile index 51aba8484537..39f068757b24 100644 --- a/sysutils/zfstools/Makefile +++ b/sysutils/zfstools/Makefile @@ -1,37 +1,38 @@ # $FreeBSD$ PORTNAME= zfstools PORTVERSION= 0.3.1 +PORTREVSIION= 1 CATEGORIES= sysutils ruby MASTER_SITES= GH \ http://mirror.shatow.net/freebsd/${PORTNAME}/ MAINTAINER= bdrewery@FreeBSD.org COMMENT= OpenSolaris-compatible auto snapshotting for ZFS LICENSE= BSD LICENSE_FILE= ${WRKSRC}/LICENSE.txt USE_GITHUB= yes GH_ACCOUNT= bdrewery GH_COMMIT= 24d02f9 GH_TAGNAME= v${DISTVERSION} USE_RUBY= yes NO_BUILD= yes SUB_FILES= pkg-message OPTIONS_DEFINE= DOCS .include do-install: @cd ${WRKSRC}/bin && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/sbin @cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${RUBY_SITELIBDIR} .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} .endif .include diff --git a/sysutils/zfstools/files/pkg-message.in b/sysutils/zfstools/files/pkg-message.in index eb90c0038663..122d1af16cd5 100644 --- a/sysutils/zfstools/files/pkg-message.in +++ b/sysutils/zfstools/files/pkg-message.in @@ -1,18 +1,26 @@ 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.