浏览代码

Add a "--deleted" flag to the "repo-list" action (Borg 2 only).

Dan Helfman 6 月之前
父节点
当前提交
7c90c04ce0
共有 3 个文件被更改,包括 11 次插入1 次删除
  1. 4 0
      NEWS
  2. 6 0
      borgmatic/commands/arguments.py
  3. 1 1
      pyproject.toml

+ 4 - 0
NEWS

@@ -1,3 +1,7 @@
+1.9.3.dev0
+ * Add a "--deleted" flag to the "repo-list" action for listing deleted archives that haven't
+   yet been compacted (Borg 2 only).
+
 1.9.2
  * #441: Apply the "umask" option to all relevant actions, not just some of them.
  * #722: Remove the restriction that the "extract" and "mount" actions must match a single

+ 6 - 0
borgmatic/commands/arguments.py

@@ -1244,6 +1244,12 @@ def make_parsers():
         metavar='TIMESPAN',
         help='List archives that are newer than the specified time range (e.g. 7d or 12m) from the current time [Borg 2.x+ only]',
     )
+    repo_list_group.add_argument(
+        '--deleted',
+        default=False,
+        action='store_true',
+        help="List only deleted archives that haven't yet been compacted [Borg 2.x+ only]",
+    )
     repo_list_group.add_argument(
         '-h', '--help', action='help', help='Show this help message and exit'
     )

+ 1 - 1
pyproject.toml

@@ -1,6 +1,6 @@
 [project]
 name = "borgmatic"
-version = "1.9.2"
+version = "1.9.3.dev0"
 authors = [
   { name="Dan Helfman", email="witten@torsion.org" },
 ]