Created attachment 167514 [details] tarsnap-periodic.shar Script that uses the periodic system to create and manage tarsnap backups. Easily configured via /etc/periodic.conf. WWW: https://github.com/anotherkamila/tarsnap-periodic
Comment on attachment 167514 [details] 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="YES" Xdaily_tarsnap_backup_paths="/" Xdaily_tarsnap_backup_keep=7 Xweekly_tarsnap_backup_enable="YES" Xweekly_tarsnap_backup_paths="/" Xweekly_tarsnap_backup_keep=5 Xmonthly_tarsnap_backup_enable="YES" Xmonthly_tarsnap_backup_paths="/" Xmonthly_tarsnap_backup_keep=2 f1af31ec63e10903b53435c356c1fcaf echo x - tarsnap-periodic/Makefile sed 's/^X//' >tarsnap-periodic/Makefile << '4b9c43d5f60667beca68d001ebe6d34f' X# Created by: Kamila Souckova <kamila@ksp.sk> X# $FreeBSD$ X XPORTNAME= tarsnap-periodic XPORTVERSION= 1.0.20160228 XCATEGORIES= sysutils X XMAINTAINER= kamila@ksp.sk XCOMMENT= Simple way of making tarsnap backups using the periodic system X XRUN_DEPENDS= tarsnap:${PORTSDIR}/sysutils/tarsnap X XUSE_GITHUB= yes XGH_ACCOUNT= anotherkamila XGH_TAGNAME= 0dc9fef X XNO_ARCH= yes XNO_BUILD= yes X XPERIODIC_DIRS= etc/periodic/daily etc/periodic/weekly \ X etc/periodic/monthly etc/periodic X XPERIODIC_FILES= etc/periodic/daily/000.tarsnap-backup \ X etc/periodic/weekly/000.tarsnap-backup \ X etc/periodic/monthly/000.tarsnap-backup X XPLIST_FILES= ${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 <bsd.port.mk> 4b9c43d5f60667beca68d001ebe6d34f echo x - tarsnap-periodic/distinfo sed 's/^X//' >tarsnap-periodic/distinfo << '99edaad9ef56d69e5f91af927c996c24' XSHA256 (anotherkamila-tarsnap-periodic-1.0.20160228-0dc9fef_GH0.tar.gz) = 4e71cda4aa14df775043bc6af5a22bd83fe00ef6f4fefae4018d782d63444ca8 XSIZE (anotherkamila-tarsnap-periodic-1.0.20160228-0dc9fef_GH0.tar.gz) = 1956 99edaad9ef56d69e5f91af927c996c24 echo x - tarsnap-periodic/pkg-descr sed 's/^X//' >tarsnap-periodic/pkg-descr << '55bad58d8adabe8af7f6ee6e60c8dc16' 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
Created attachment 167515 [details] tarsnap-periodic.shar -- newest commit I accidentally submitted an older version referencing an old commit.
Created attachment 167553 [details] tarsnap-periodic.shar -- bugfix + bumping commit and port version This one is somewhat more tested (sorry for the noise).
A commit references this bug: Author: rakuco Date: Sat Mar 5 16:56:02 UTC 2016 New revision: 410190 URL: https://svnweb.freebsd.org/changeset/ports/410190 Log: New port: sysutils/tarsnap-periodic. Script that uses the periodic system to create and manage tarsnap backups. Easily configured via /etc/periodic.conf. WWW: https://github.com/anotherkamila/tarsnap-periodic PR: 207560 Submitted by: Kamila Sou?kov? <kamila@ksp.sk> Changes: head/sysutils/Makefile head/sysutils/tarsnap-periodic/ head/sysutils/tarsnap-periodic/Makefile head/sysutils/tarsnap-periodic/distinfo head/sysutils/tarsnap-periodic/pkg-descr head/sysutils/tarsnap-periodic/pkg-message
Committed, thanks for the patch!