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 e5c12fc81c
commit cd8ceccfaf
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. * Dropped Python 2 support. Now Python 3 only.
* #18: Fix for README mention of sample files not included in package. * #18: Fix for README mention of sample files not included in package.
* #22: Sample files for triggering borgmatic from a systemd timer. * #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. * Enabled test coverage output during tox runs.
* Added logo. * Added logo.

View file

@ -52,8 +52,8 @@ def main(): # pragma: no cover
) )
borg.initialize(storage) borg.initialize(storage)
borg.create_archive(args.verbosity, storage, **config['location'])
borg.prune_archives(args.verbosity, repository, retention, remote_path=remote_path) 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) borg.check_archives(args.verbosity, repository, consistency, remote_path=remote_path)
except (ValueError, OSError, CalledProcessError) as error: except (ValueError, OSError, CalledProcessError) as error:
print(error, file=sys.stderr) print(error, file=sys.stderr)