浏览代码

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

Dan Helfman 8 年之前
父节点
当前提交
1292dd2162
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      NEWS
  2. 1 1
      borgmatic/commands/borgmatic.py

+ 1 - 0
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.
 

+ 1 - 1
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)