浏览代码

Support for Borg --keep-secondly prune option (#98).

Dan Helfman 6 年之前
父节点
当前提交
da8e9638f4
共有 4 个文件被更改,包括 8 次插入2 次删除
  1. 2 1
      NEWS
  2. 4 0
      borgmatic/config/schema.yaml
  3. 1 0
      scripts/find-unsupported-borg-options
  4. 1 1
      setup.py

+ 2 - 1
NEWS

@@ -1,4 +1,5 @@
-1.2.7.dev0
+1.2.7
+ * #98: Support for Borg --keep-secondly prune option.
  * Use Black code formatter and Flake8 code checker as part of running automated tests.
  * Add an end-to-end automated test that actually integrates with Borg.
  * Set up continuous integration for borgmatic automated tests on projects.evoworx.org.

+ 4 - 0
borgmatic/config/schema.yaml

@@ -181,6 +181,10 @@ map:
                 type: scalar
                 desc: Keep all archives within this time interval.
                 example: 3H
+            keep_secondly:
+                type: int
+                desc: Number of secondly archives to keep.
+                example: 60
             keep_minutely:
                 type: int
                 desc: Number of minutely archives to keep.

+ 1 - 0
scripts/find-unsupported-borg-options

@@ -36,6 +36,7 @@ for sub_command in prune create check list info; do
             | grep -v '^--help$' \
             | grep -v '^--info$' \
             | grep -v '^--json$' \
+            | grep -v '^--keep-last$' \
             | grep -v '^--list$' \
             | grep -v '^--nobsdflags$' \
             | grep -v '^--pattern$' \

+ 1 - 1
setup.py

@@ -1,7 +1,7 @@
 from setuptools import setup, find_packages
 
 
-VERSION = '1.2.7.dev0'
+VERSION = '1.2.7'
 
 
 setup(