فهرست منبع

Merge pull request #5357 from ThomasWaldmann/docs-prune-add-double-force

docs: mention double --force in prune docs
TW 4 سال پیش
والد
کامیت
83a157266a
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 1 1
      docs/usage/prune.rst.inc
  2. 2 1
      src/borg/archiver.py

+ 1 - 1
docs/usage/prune.rst.inc

@@ -21,7 +21,7 @@ borg prune
     +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
     |                                                                             | ``-n``, ``--dry-run``                 | do not change repository                                                                                                                               |
     +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
-    |                                                                             | ``--force``                           | force pruning of corrupted archives, use ``--force --force`` in case ``--force`` does not work.                                                        |
+    |                                                                             | ``--force``                           | force pruning of corrupted archives                                                                                                                    |
     +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
     |                                                                             | ``-s``, ``--stats``                   | print statistics for the deleted archive                                                                                                               |
     +-----------------------------------------------------------------------------+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+

+ 2 - 1
src/borg/archiver.py

@@ -4063,7 +4063,8 @@ class Archiver:
         subparser.add_argument('-n', '--dry-run', dest='dry_run', action='store_true',
                                help='do not change repository')
         subparser.add_argument('--force', dest='forced', action='store_true',
-                               help='force pruning of corrupted archives')
+                               help='force pruning of corrupted archives, '
+                                    'use ``--force --force`` in case ``--force`` does not work.')
         subparser.add_argument('-s', '--stats', dest='stats', action='store_true',
                                help='print statistics for the deleted archive')
         subparser.add_argument('--list', dest='output_list', action='store_true',