import borgmatic-1.0.3

borgmatic is a simple Python wrapper script for the Borg backup software
that initiates a backup, prunes any old backups according to a retention
policy, and validates backups for consistency. The script supports
specifying your settings in a declarative configuration file rather than
having to put them all on the command-line, and handles common errors.

ok aja@
This commit is contained in:
jasper 2017-07-17 18:22:33 +00:00
parent 26974221e5
commit 803b29f8e3
5 changed files with 135 additions and 0 deletions

View File

@ -0,0 +1,30 @@
# $OpenBSD: Makefile,v 1.1.1.1 2017/07/17 18:22:33 jasper Exp $
COMMENT = wrapper for Borg to create and prune backups
MODPY_EGG_VERSION = 1.0.3
DISTNAME = borgmatic-${MODPY_EGG_VERSION}
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
HOMEPAGE = https://torsion.org/borgmatic/
CATEGORIES = sysutils
# GPLv3
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
TEST_DEPENDS = devel/py-flexmock${MODPY_FLAVOR} \
devel/py-test${MODPY_FLAVOR}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/borgmatic/
${INSTALL_DATA} ${FILESDIR}/config.dist \
${PREFIX}/share/examples/borgmatic/
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (borgmatic-1.0.3.tar.gz) = 0iL19kv3lTFieqF+87NwUzJ9PFLK2uFLsMSTmXBzkac=
SIZE (borgmatic-1.0.3.tar.gz) = 8760

View File

@ -0,0 +1,50 @@
# $OpenBSD: config.dist,v 1.1.1.1 2017/07/17 18:22:33 jasper Exp $
[location]
# Space-separated list of source directories to backup.
# Globs are expanded.
#source_directories: /home /etc /var/log/syslog*
# Stay in same file system (do not cross mount points).
#one_file_system: True
# Alternate Borg remote executable (defaults to "borg"):
#remote_path: borg1
# Path to local or remote repository.
#repository: user@backupserver:sourcehostname.borg
[storage]
# Passphrase to unlock the encryption key with. Only use on repositories that
# were initialized with passphrase/repokey encryption.
#encryption_passphrase: foo
# Type of compression to use when creating archives. See
# https://borgbackup.readthedocs.org/en/stable/usage.html#borg-create
# for details. Defaults to no compression.
#compression: lz4
# Umask to be used for borg create.
#umask: 0077
[retention]
# Retention policy for how many backups to keep in each category. See
# https://borgbackup.readthedocs.org/en/stable/usage.html#borg-prune for details.
#keep_within: 3H
#keep_hourly: 24
#keep_daily: 7
#keep_weekly: 4
#keep_monthly: 6
#keep_yearly: 1
#prefix: sourcehostname
[consistency]
# Space-separated list of consistency checks to run: "repository", "archives",
# or both. Defaults to both. Set to "disabled" to disable all consistency
# checks. See https://borgbackup.readthedocs.org/en/stable/usage.html#borg-check
# for details.
#checks: repository archives
# Restrict the number of checked archives to the last n.
#check_last: 3

View File

@ -0,0 +1,5 @@
borgmatic is a simple Python wrapper script for the Borg backup software
that initiates a backup, prunes any old backups according to a retention
policy, and validates backups for consistency. The script supports
specifying your settings in a declarative configuration file rather than
having to put them all on the command-line, and handles common errors.

View File

@ -0,0 +1,48 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/07/17 18:22:33 jasper Exp $
bin/borgmatic
lib/python${MODPY_VERSION}/site-packages/borgmatic/
lib/python${MODPY_VERSION}/site-packages/borgmatic-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/borgmatic-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/borgmatic-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/borgmatic-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/borgmatic-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
lib/python${MODPY_VERSION}/site-packages/borgmatic-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/borgmatic/__init__.py
lib/python${MODPY_VERSION}/site-packages/borgmatic/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/borgmatic/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/${MODPY_PYCACHE}borg.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/${MODPY_PYCACHE}command.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/${MODPY_PYCACHE}config.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/${MODPY_PYCACHE}verbosity.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/borg.py
lib/python${MODPY_VERSION}/site-packages/borgmatic/command.py
lib/python${MODPY_VERSION}/site-packages/borgmatic/config.py
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/__init__.py
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/${MODPY_PYCACHE}builtins.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/builtins.py
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/integration/
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/integration/__init__.py
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/integration/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/integration/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/integration/${MODPY_PYCACHE}test_command.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/integration/${MODPY_PYCACHE}test_config.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/integration/${MODPY_PYCACHE}test_version.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/integration/test_command.py
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/integration/test_config.py
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/integration/test_version.py
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/unit/
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/unit/__init__.py
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/unit/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/unit/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/unit/${MODPY_PYCACHE}test_borg.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/unit/${MODPY_PYCACHE}test_config.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/unit/test_borg.py
lib/python${MODPY_VERSION}/site-packages/borgmatic/tests/unit/test_config.py
lib/python${MODPY_VERSION}/site-packages/borgmatic/verbosity.py
share/examples/borgmatic/
@sample ${SYSCONFDIR}/borgmatic/
share/examples/borgmatic/config.dist
@sample ${SYSCONFDIR}/borgmatic/config