Browse Source

Merge pull request #6850 from ThomasWaldmann/deprecated-prefix-option-1.2

deprecate --prefix, use -a / --glob-archives, see #6806
TW 2 năm trước cách đây
mục cha
commit
907764e018
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/borg/archiver.py

+ 1 - 0
src/borg/archiver.py

@@ -2643,6 +2643,7 @@ class Archiver:
             ('--numeric-owner', None, 'Warning: "--numeric-owner" has been deprecated. Use --numeric-ids instead.'),
             ('--remote-ratelimit', None, 'Warning: "--remote-ratelimit" has been deprecated. Use --upload-ratelimit instead.'),
             ('--remote-buffer', None, 'Warning: "--remote-buffer" has been deprecated. Use --upload-buffer instead.'),
+            ('--prefix', None, 'Warning: "--prefix" has been deprecated. Use "--glob-archives \'yourprefix*\'" (-a) instead.'),
         ]
         for i, arg in enumerate(args[:]):
             for old_name, new_name, warning in deprecations: