Index: head/sysutils/acts/Makefile =================================================================== --- head/sysutils/acts/Makefile (revision 507395) +++ head/sysutils/acts/Makefile (revision 507396) @@ -1,26 +1,27 @@ # Created by: Mark Felder # $FreeBSD$ PORTNAME= acts PORTVERSION= 1.4.0 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= sysutils archivers -MAINTAINER= feld@FreeBSD.org +MAINTAINER= adamw@FreeBSD.org COMMENT= Another Calendar-based Tarsnap Script LICENSE= PD RUN_DEPENDS= tarsnap>=0:sysutils/tarsnap USE_GITHUB= yes GH_ACCOUNT= alexjurkiewicz NO_BUILD= yes NO_ARCH= yes do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/acts ${STAGEDIR}${PREFIX}/bin/acts - ${INSTALL_DATA} ${WRKSRC}/acts.conf.sample ${STAGEDIR}${PREFIX}/etc/acts.conf.sample + ${INSTALL_SCRIPT} ${WRKSRC}/acts ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/acts.conf.sample ${STAGEDIR}${PREFIX}/etc .include Index: head/sysutils/acts/files/patch-acts =================================================================== --- head/sysutils/acts/files/patch-acts (nonexistent) +++ head/sysutils/acts/files/patch-acts (revision 507396) @@ -0,0 +1,33 @@ +From 8230c749dd92ce6d5fd7b742525e8c9701f4bacb Mon Sep 17 00:00:00 2001 +From: Adam Weinberger +Date: Tue, 16 Jul 2019 06:16:27 -0600 +Subject: [PATCH] Wrap the archive deletion tarsnap call + +With it unwrapped, if you call tarsnap with --print-stats, or if that +is in your tarsnap.conf, you'll get the stats printed after every +archive deletion. + +While the information is great to have, if you have many targets, +you get 5n lines of output, with nothing indicating which target it's +referring to. It might be worth exploring a better way to show how +much data got added and/or removed for each target, given that tarsnap +can automatically give that info right back to acts. +--- + acts | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/acts b/acts +index 4dc1803..63f35cb 100755 +--- acts.orig ++++ acts +@@ -238,7 +238,9 @@ prune_backups() { + log_verbose "message=\"Deleting backup prefix $archiveprefixtodel*\"" + echo "$archives" | grep -E "^$archiveprefixtodel" | while read -r archivetodel; do + log_debug "message=\"Deleting backup $archivetodel\"" +- $tarsnap -d -f "$archivetodel" ++ if ! output="$($tarsnap -d -f "$archivetodel" 2>&1)"; then ++ log_message "delete-error type=$backuplevel output=\"$(echo $output | tr '\n' " ")\"" ++ fi + done + done + else Property changes on: head/sysutils/acts/files/patch-acts ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/acts/pkg-descr =================================================================== --- head/sysutils/acts/pkg-descr (revision 507395) +++ head/sysutils/acts/pkg-descr (revision 507396) @@ -1,11 +1,11 @@ acts is a minimal shell script that creates backups with Tarsnap. Some design goals: Just backup, no restore. Calendar-based (daily, monthly, yearly) backup schedule Portable, small code footprint. -One Tarsnap archive is created per-target per-run. 31 daily, 12 monthly, -and indefinite yearly backups are kept. +By default, 31 daily, 12 monthly, and indefinite yearly backups +are kept. WWW: https://github.com/alexjurkiewicz/acts