To free up space, now pruning backups prior to creating a new backup.

This commit is contained in:
Dan Helfman 2017-07-22 21:50:29 -07:00
parent b02ac44cfc
commit 1292dd2162
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -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.

View File

@ -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)