From owner-freebsd-ports-bugs@freebsd.org Sun Feb 28 13:51:39 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D50CAB0E2A for ; Sun, 28 Feb 2016 13:51:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3D8FE1F8D for ; Sun, 28 Feb 2016 13:51:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1SDpd0T039607 for ; Sun, 28 Feb 2016 13:51:39 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 207560] New port: sysutils/tarsnap-periodic -- script that uses periodic(8) to automate tarsnap backups Date: Sun, 28 Feb 2016 13:51:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kamila@ksp.sk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Feb 2016 13:51:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207560 --- Comment #1 from Kamila Sou=C4=8Dkov=C3=A1 --- Comment on attachment 167514 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D167514 tarsnap-periodic.shar # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # tarsnap-periodic # tarsnap-periodic/pkg-message # tarsnap-periodic/Makefile # tarsnap-periodic/distinfo # tarsnap-periodic/pkg-descr # echo c - tarsnap-periodic mkdir -p tarsnap-periodic > /dev/null 2>&1 echo x - tarsnap-periodic/pkg-message sed 's/^X//' >tarsnap-periodic/pkg-message << 'f1af31ec63e10903b53435c356c1fcaf' X XIn order to enable periodic tarsnap backups you need Xto add these lines to your /etc/periodic.conf X Xdaily_tarsnap_backup_enable=3D"YES" Xdaily_tarsnap_backup_paths=3D"/" Xdaily_tarsnap_backup_keep=3D7 Xweekly_tarsnap_backup_enable=3D"YES" Xweekly_tarsnap_backup_paths=3D"/" Xweekly_tarsnap_backup_keep=3D5 Xmonthly_tarsnap_backup_enable=3D"YES" Xmonthly_tarsnap_backup_paths=3D"/" Xmonthly_tarsnap_backup_keep=3D2 f1af31ec63e10903b53435c356c1fcaf echo x - tarsnap-periodic/Makefile sed 's/^X//' >tarsnap-periodic/Makefile << '4b9c43d5f60667beca68d001ebe6d34= f' X# Created by: Kamila Souckova X# $FreeBSD$ X XPORTNAME=3D tarsnap-periodic XPORTVERSION=3D 1.0.20160228 XCATEGORIES=3D sysutils X XMAINTAINER=3D kamila@ksp.sk XCOMMENT=3D Simple way of making tarsnap backups using the periodic s= ystem X XRUN_DEPENDS=3D tarsnap:${PORTSDIR}/sysutils/tarsnap X XUSE_GITHUB=3D yes XGH_ACCOUNT=3D anotherkamila XGH_TAGNAME=3D 0dc9fef X XNO_ARCH=3D yes XNO_BUILD=3D yes X XPERIODIC_DIRS=3D etc/periodic/daily etc/periodic/weekly \ X etc/periodic/monthly etc/periodic X XPERIODIC_FILES=3D etc/periodic/daily/000.tarsnap-backup \ X etc/periodic/weekly/000.tarsnap-backup \ X etc/periodic/monthly/000.tarsnap-backup X XPLIST_FILES=3D ${PERIODIC_FILES} bin/tarsnap-backup X Xpost-patch: X.for _file in ${PERIODIC_FILES} X @${REINPLACE_CMD} -e "s|tarsnap-backup|${PREFIX}/bin/tarsnap-backup= |" \ X ${WRKSRC}/${_file} X.endfor X Xdo-install: X ${INSTALL_SCRIPT} ${WRKSRC}/bin/tarsnap-backup ${STAGEDIR}${PREFIX}= /bin X.for _dir in ${PERIODIC_DIRS} X @${MKDIR} ${STAGEDIR}${PREFIX}/${_dir} X.endfor X X.for _file in ${PERIODIC_FILES} X ${INSTALL_SCRIPT} ${WRKSRC}/${_file} ${STAGEDIR}${PREFIX}/${_file} X.endfor X X.include 4b9c43d5f60667beca68d001ebe6d34f echo x - tarsnap-periodic/distinfo sed 's/^X//' >tarsnap-periodic/distinfo << '99edaad9ef56d69e5f91af927c996c2= 4' XSHA256 (anotherkamila-tarsnap-periodic-1.0.20160228-0dc9fef_GH0.tar.gz) =3D 4e71cda4aa14df775043bc6af5a22bd83fe00ef6f4fefae4018d782d63444ca8 XSIZE (anotherkamila-tarsnap-periodic-1.0.20160228-0dc9fef_GH0.tar.gz) =3D = 1956 99edaad9ef56d69e5f91af927c996c24 echo x - tarsnap-periodic/pkg-descr sed 's/^X//' >tarsnap-periodic/pkg-descr << '55bad58d8adabe8af7f6ee6e60c8dc= 16' XScript that uses the periodic system to create and manage tarsnap Xbackups. Easily configured via /etc/periodic.conf X XWWW: https://github.com/anotherkamila/tarsnap-periodic 55bad58d8adabe8af7f6ee6e60c8dc16 exit --=20 You are receiving this mail because: You are the assignee for the bug.=