From d79b325494820f61372a61043226c34d2c7d8bc7 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 7 Feb 2022 22:25:34 +0100 Subject: [PATCH] docs: link to borg_patterns --- src/borg/archiver.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index 510311eea..09fa05752 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -2762,6 +2762,7 @@ class Archiver: 'a_status_oddity': '"I am seeing ‘A’ (added) status for a unchanged file!?"', 'separate_compaction': '"Separate compaction"', 'list_item_flags': '"Item flags"', + 'borg_patterns': '"borg help patterns"', } def process_epilog(epilog): @@ -3328,7 +3329,7 @@ class Archiver: the state after creation. Also, the ``--stats`` and ``--dry-run`` options are mutually exclusive because the data is not actually compressed and deduplicated during a dry run. - For more help on include/exclude patterns, see the ``borg help patterns`` command output. + For more help on include/exclude patterns, see the :ref:`borg_patterns` command output. For more help on placeholders, see the ``borg help placeholders`` command output. @@ -3755,7 +3756,7 @@ class Archiver: You can delete multiple archives by specifying their common prefix, if they have one, using the ``--prefix PREFIX`` option. You can also specify a shell pattern to match multiple archives using the ``--glob-archives GLOB`` option - (for more info on these patterns, see ``borg help patterns``). Note that these + (for more info on these patterns, see :ref:`borg_patterns`). Note that these two options are mutually exclusive. To avoid accidentally deleting archives, especially when using glob patterns, @@ -3807,7 +3808,7 @@ class Archiver: pass ``--same-chunker-params``. Note that the chunker params changed from Borg 0.xx to 1.0. - For more help on include/exclude patterns, see the ``borg help patterns`` command output. + For more help on include/exclude patterns, see the :ref:`borg_patterns` command output. """) subparser = subparsers.add_parser('diff', parents=[common_parser], add_help=False, description=self.do_diff.__doc__, @@ -3868,7 +3869,7 @@ class Archiver: can be selected by passing a list of ``PATHs`` as arguments. The file selection can further be restricted by using the ``--exclude`` option. - For more help on include/exclude patterns, see the ``borg help patterns`` command output. + For more help on include/exclude patterns, see the :ref:`borg_patterns` command output. ``--progress`` can be slower than no progress display, since it makes one additional pass over the archive metadata. @@ -3899,7 +3900,7 @@ class Archiver: by passing a list of ``PATHs`` as arguments. The file selection can further be restricted by using the ``--exclude`` option. - For more help on include/exclude patterns, see the ``borg help patterns`` command output. + For more help on include/exclude patterns, see the :ref:`borg_patterns` command output. By using ``--dry-run``, you can do all extraction steps except actually writing the output data: reading metadata and data chunks from the repo, checking the hash/hmac, @@ -4265,7 +4266,7 @@ class Archiver: list_epilog = process_epilog(""" This command lists the contents of a repository or an archive. - For more help on include/exclude patterns, see the ``borg help patterns`` command output. + For more help on include/exclude patterns, see the :ref:`borg_patterns` command output. .. man NOTES