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
commit 1292dd2162

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)