diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2010-01-02 14:53:41 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2010-01-02 14:53:41 +0000 |
commit | b7f81a6bec2fa49fd813bed8bdda4741683328d1 (patch) | |
tree | ebb0a196cf1f846111a05d0f08435c5ad49350ea /sysutils/zfs-snapshot-clean | |
parent | 871b5917e12d03fdf9865ebab8c641bfe62cbae2 (diff) | |
download | ports-b7f81a6bec2fa49fd813bed8bdda4741683328d1.tar.gz ports-b7f81a6bec2fa49fd813bed8bdda4741683328d1.zip |
Notes
Diffstat (limited to 'sysutils/zfs-snapshot-clean')
-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 |
3 files changed, 42 insertions, 0 deletions
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 |