A wrapper around tarsnap which does two things: * Lets you define "backup jobs" (tarsnap invocations) in a config file, though on its own this has little advantage over just using a a shell script. * The ability to expire old backups using a Grandfather-father-son backup scheme. This feature can be used in conjunction with tarsnapper backup jobs, or standalone, to be applied to any existing set of tarsnap backup archives, regardless of how they have been created. WWW: https://github.com/miracle2k/tarsnapper
28 lines
748 B
Makefile
28 lines
748 B
Makefile
# Created by: philip@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tarsnapper
|
|
PORTVERSION= 0.4
|
|
CATEGORIES= sysutils python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= philip@FreeBSD.org
|
|
COMMENT= Tarsnap wrapper which expires backups using a gfs-scheme
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= python
|
|
USE_PYTHON= distutils autoplist
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= miracle2k
|
|
GH_PROJECT= tarsnapper
|
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}argparse>0:devel/py-argparse@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pyaml>0:textproc/py-pyaml@${PY_FLAVOR} \
|
|
tarsnap>=0:sysutils/tarsnap
|
|
|
|
.include <bsd.port.mk>
|