diff options
author | knu <knu@FreeBSD.org> | 2010-01-02 22:53:41 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2010-01-02 22:53:41 +0800 |
commit | 82e4123ed48add770b6f84cda4465603b9839935 (patch) | |
tree | 4657826c94fbed9fa6c520376edb1b377d83a435 /sysutils | |
parent | 29b7522fd3cbba663b3371a2f3c17d452951dd7f (diff) | |
download | freebsd-ports-gnome-82e4123ed48add770b6f84cda4465603b9839935.tar.gz freebsd-ports-gnome-82e4123ed48add770b6f84cda4465603b9839935.tar.zst freebsd-ports-gnome-82e4123ed48add770b6f84cda4465603b9839935.zip |
Add zfs-snapshot-clean, a tool to sieve ZFS snapshots as per given spec.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/zfs-snapshot-clean/Makefile | 23 | ||||
-rw-r--r-- | sysutils/zfs-snapshot-clean/distinfo | 3 | ||||
-rw-r--r-- | sysutils/zfs-snapshot-clean/pkg-descr | 16 |
4 files changed, 43 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index fa0a110fd6af..f8e6cd1b4fcd 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -925,6 +925,7 @@ SUBDIR += zeroer SUBDIR += zetaback SUBDIR += zfs-replicate + SUBDIR += zfs-snapshot-clean SUBDIR += zfs-snapshot-mgmt SUBDIR += zidrav SUBDIR += zisofs-tools diff --git a/sysutils/zfs-snapshot-clean/Makefile b/sysutils/zfs-snapshot-clean/Makefile new file mode 100644 index 000000000000..ee21672dcd5d --- /dev/null +++ b/sysutils/zfs-snapshot-clean/Makefile @@ -0,0 +1,23 @@ +# New ports collection makefile for: zfs-snapshot-clean +# Date created: 2 January 2010 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= zfs-snapshot-clean +PORTVERSION= 0.1.0 +CATEGORIES= sysutils +MASTER_SITES= http://download.github.com/ +DISTNAME= knu-${PORTNAME}-d46cc04 + +MAINTAINER= knu@FreeBSD.org +COMMENT= A tool to sieve ZFS snapshots as per given spec a la 'pdumpfs-clean' + +NO_BUILD= yes +PLIST_FILES= sbin/${PORTNAME} + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin/ + +.include <bsd.port.mk> diff --git a/sysutils/zfs-snapshot-clean/distinfo b/sysutils/zfs-snapshot-clean/distinfo new file mode 100644 index 000000000000..d1890628f11d --- /dev/null +++ b/sysutils/zfs-snapshot-clean/distinfo @@ -0,0 +1,3 @@ +MD5 (knu-zfs-snapshot-clean-d46cc04.tar.gz) = 88326ff177e56ff6fc3ddcee80a0feba +SHA256 (knu-zfs-snapshot-clean-d46cc04.tar.gz) = c2b3f982eeb4cc5f7051294c792dee333a938c92fc973981edd15f7db771d6d5 +SIZE (knu-zfs-snapshot-clean-d46cc04.tar.gz) = 2684 diff --git a/sysutils/zfs-snapshot-clean/pkg-descr b/sysutils/zfs-snapshot-clean/pkg-descr new file mode 100644 index 000000000000..a4cd8fcfd6b1 --- /dev/null +++ b/sysutils/zfs-snapshot-clean/pkg-descr @@ -0,0 +1,16 @@ +zfs-snapshot-clean +------------------ + +This is a tool to sieve ZFS snapshots as per given spec a la +`pdumpfs-clean'. + +Typical usage is as follows: + + for vol in zpool/home zpool/var; do + zfs snapshot "$vol@$(date +%Y-%m-%d)" && zfs-snapshot-clean "$vol" + done + +Run `zfs-snapshot-clean -h' for details. + +Author: Akinori MUSHA <knu@iDaemons.org> +WWW: http://github.com/knu/zfs-snapshot-clean |