From 1292dd216251f0e26db6418d3e00fdcfcec88e06 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sat, 22 Jul 2017 21:50:29 -0700 Subject: [PATCH] To free up space, now pruning backups prior to creating a new backup. --- NEWS | 1 + borgmatic/commands/borgmatic.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 0941a1c..47e5361 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ * Dropped Python 2 support. Now Python 3 only. * #18: Fix for README mention of sample files not included in package. * #22: Sample files for triggering borgmatic from a systemd timer. + * To free up space, now pruning backups prior to creating a new backup. * Enabled test coverage output during tox runs. * Added logo. diff --git a/borgmatic/commands/borgmatic.py b/borgmatic/commands/borgmatic.py index c37b891..90fccca 100644 --- a/borgmatic/commands/borgmatic.py +++ b/borgmatic/commands/borgmatic.py @@ -52,8 +52,8 @@ def main(): # pragma: no cover ) borg.initialize(storage) - borg.create_archive(args.verbosity, storage, **config['location']) borg.prune_archives(args.verbosity, repository, retention, remote_path=remote_path) + borg.create_archive(args.verbosity, storage, **config['location']) borg.check_archives(args.verbosity, repository, consistency, remote_path=remote_path) except (ValueError, OSError, CalledProcessError) as error: print(error, file=sys.stderr)