mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 06:01:54 +00:00
docs: double backticks for --options
This commit is contained in:
parent
2b13607f46
commit
48642d787a
1 changed files with 31 additions and 31 deletions
|
@ -2520,7 +2520,7 @@ def define_common_options(add_common_option):
|
||||||
stored in the segments.
|
stored in the segments.
|
||||||
- If you use a remote repo server via ssh:, the repo check is executed on the
|
- If you use a remote repo server via ssh:, the repo check is executed on the
|
||||||
repo server without causing significant network traffic.
|
repo server without causing significant network traffic.
|
||||||
- The repository check can be skipped using the --archives-only option.
|
- The repository check can be skipped using the ``--archives-only`` option.
|
||||||
|
|
||||||
Second, the consistency and correctness of the archive metadata is verified:
|
Second, the consistency and correctness of the archive metadata is verified:
|
||||||
|
|
||||||
|
@ -2542,9 +2542,9 @@ def define_common_options(add_common_option):
|
||||||
decryption and this is always done client-side, because key access will be
|
decryption and this is always done client-side, because key access will be
|
||||||
required).
|
required).
|
||||||
- The archive checks can be time consuming, they can be skipped using the
|
- The archive checks can be time consuming, they can be skipped using the
|
||||||
--repository-only option.
|
``--repository-only`` option.
|
||||||
|
|
||||||
The --verify-data option will perform a full integrity verification (as opposed to
|
The ``--verify-data`` option will perform a full integrity verification (as opposed to
|
||||||
checking the CRC32 of the segment) of data, which means reading the data from the
|
checking the CRC32 of the segment) of data, which means reading the data from the
|
||||||
repository, decrypting and decompressing it. This is a cryptographic verification,
|
repository, decrypting and decompressing it. This is a cryptographic verification,
|
||||||
which will detect (accidental) corruption. For encrypted repositories it is
|
which will detect (accidental) corruption. For encrypted repositories it is
|
||||||
|
@ -2570,7 +2570,7 @@ def define_common_options(add_common_option):
|
||||||
subparser.add_argument('--verify-data', dest='verify_data', action='store_true',
|
subparser.add_argument('--verify-data', dest='verify_data', action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
help='perform cryptographic archive data integrity verification '
|
help='perform cryptographic archive data integrity verification '
|
||||||
'(conflicts with --repository-only)')
|
'(conflicts with ``--repository-only``)')
|
||||||
subparser.add_argument('--repair', dest='repair', action='store_true',
|
subparser.add_argument('--repair', dest='repair', action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
help='attempt to repair any inconsistencies found')
|
help='attempt to repair any inconsistencies found')
|
||||||
|
@ -2644,7 +2644,7 @@ def define_common_options(add_common_option):
|
||||||
help='path to the backup')
|
help='path to the backup')
|
||||||
subparser.add_argument('--paper', dest='paper', action='store_true',
|
subparser.add_argument('--paper', dest='paper', action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
help='interactively import from a backup done with --paper')
|
help='interactively import from a backup done with ``--paper``')
|
||||||
|
|
||||||
change_passphrase_epilog = process_epilog("""
|
change_passphrase_epilog = process_epilog("""
|
||||||
The key files used for repository encryption are optionally passphrase
|
The key files used for repository encryption are optionally passphrase
|
||||||
|
@ -2716,7 +2716,7 @@ def define_common_options(add_common_option):
|
||||||
{now}, {utcnow}, {fqdn}, {hostname}, {user} and some others.
|
{now}, {utcnow}, {fqdn}, {hostname}, {user} and some others.
|
||||||
|
|
||||||
To speed up pulling backups over sshfs and similar network file systems which do
|
To speed up pulling backups over sshfs and similar network file systems which do
|
||||||
not provide correct inode information the --ignore-inode flag can be used. This
|
not provide correct inode information the ``--ignore-inode`` flag can be used. This
|
||||||
potentially decreases reliability of change detection, while avoiding always reading
|
potentially decreases reliability of change detection, while avoiding always reading
|
||||||
all files on these file systems.
|
all files on these file systems.
|
||||||
|
|
||||||
|
@ -2725,7 +2725,7 @@ def define_common_options(add_common_option):
|
||||||
is used to determine changed files quickly uses absolute filenames.
|
is used to determine changed files quickly uses absolute filenames.
|
||||||
If this is not possible, consider creating a bind mount to a stable location.
|
If this is not possible, consider creating a bind mount to a stable location.
|
||||||
|
|
||||||
The --progress option shows (from left to right) Original, Compressed and Deduplicated
|
The ``--progress`` option shows (from left to right) Original, Compressed and Deduplicated
|
||||||
(O, C and D, respectively), then the Number of files (N) processed so far, followed by
|
(O, C and D, respectively), then the Number of files (N) processed so far, followed by
|
||||||
the currently processed path.
|
the currently processed path.
|
||||||
|
|
||||||
|
@ -2734,8 +2734,8 @@ def define_common_options(add_common_option):
|
||||||
|
|
||||||
.. man NOTES
|
.. man NOTES
|
||||||
|
|
||||||
The --exclude patterns are not like tar. In tar --exclude .bundler/gems will
|
The ``--exclude`` patterns are not like tar. In tar ``--exclude`` .bundler/gems will
|
||||||
exclude foo/.bundler/gems. In borg it will not, you need to use --exclude
|
exclude foo/.bundler/gems. In borg it will not, you need to use ``--exclude``
|
||||||
'\*/.bundler/gems' to get the same effect. See ``borg help patterns`` for
|
'\*/.bundler/gems' to get the same effect. See ``borg help patterns`` for
|
||||||
more information.
|
more information.
|
||||||
|
|
||||||
|
@ -2941,7 +2941,7 @@ def define_common_options(add_common_option):
|
||||||
|
|
||||||
When giving '-' as the output FILE, Borg will write a tar stream to standard output.
|
When giving '-' as the output FILE, Borg will write a tar stream to standard output.
|
||||||
|
|
||||||
By default (--tar-filter=auto) Borg will detect whether the FILE should be compressed
|
By default (``--tar-filter=auto``) Borg will detect whether the FILE should be compressed
|
||||||
based on its file extension and pipe the tarball through an appropriate filter
|
based on its file extension and pipe the tarball through an appropriate filter
|
||||||
before writing it to FILE:
|
before writing it to FILE:
|
||||||
|
|
||||||
|
@ -2949,7 +2949,7 @@ def define_common_options(add_common_option):
|
||||||
- .tar.bz2: bzip2
|
- .tar.bz2: bzip2
|
||||||
- .tar.xz: xz
|
- .tar.xz: xz
|
||||||
|
|
||||||
Alternatively a --tar-filter program may be explicitly specified. It should
|
Alternatively a ``--tar-filter`` program may be explicitly specified. It should
|
||||||
read the uncompressed tar stream from stdin and write a compressed/filtered
|
read the uncompressed tar stream from stdin and write a compressed/filtered
|
||||||
tar stream to stdout.
|
tar stream to stdout.
|
||||||
|
|
||||||
|
@ -2960,7 +2960,7 @@ def define_common_options(add_common_option):
|
||||||
Timestamp resolution is limited to whole seconds, not the nanosecond resolution
|
Timestamp resolution is limited to whole seconds, not the nanosecond resolution
|
||||||
otherwise supported by Borg.
|
otherwise supported by Borg.
|
||||||
|
|
||||||
A --sparse option (as found in borg extract) is not supported.
|
A ``--sparse`` option (as found in borg extract) is not supported.
|
||||||
|
|
||||||
By default the entire archive is extracted but a subset of files and directories
|
By default the entire archive is extracted but a subset of files and directories
|
||||||
can be selected by passing a list of ``PATHs`` as arguments.
|
can be selected by passing a list of ``PATHs`` as arguments.
|
||||||
|
@ -3015,7 +3015,7 @@ def define_common_options(add_common_option):
|
||||||
|
|
||||||
For archives prior to Borg 1.1 chunk contents are compared by default.
|
For archives prior to Borg 1.1 chunk contents are compared by default.
|
||||||
If you did not create the archives with different chunker params,
|
If you did not create the archives with different chunker params,
|
||||||
pass --same-chunker-params.
|
pass ``--same-chunker-params``.
|
||||||
Note that the chunker params changed from Borg 0.xx to 1.0.
|
Note that the chunker params changed from Borg 0.xx to 1.0.
|
||||||
|
|
||||||
See the output of the "borg help patterns" command for more help on exclude patterns.
|
See the output of the "borg help patterns" command for more help on exclude patterns.
|
||||||
|
@ -3122,7 +3122,7 @@ def define_common_options(add_common_option):
|
||||||
|
|
||||||
.. man NOTES
|
.. man NOTES
|
||||||
|
|
||||||
The following keys are available for --format:
|
The following keys are available for ``--format``:
|
||||||
|
|
||||||
|
|
||||||
""") + BaseFormatter.keys_help() + textwrap.dedent("""
|
""") + BaseFormatter.keys_help() + textwrap.dedent("""
|
||||||
|
@ -3148,13 +3148,13 @@ def define_common_options(add_common_option):
|
||||||
(default: "{mode} {user:6} {group:6} {size:8d} {isomtime} {path}{extra}{NL}")""")
|
(default: "{mode} {user:6} {group:6} {size:8d} {isomtime} {path}{extra}{NL}")""")
|
||||||
subparser.add_argument('--json', action='store_true',
|
subparser.add_argument('--json', action='store_true',
|
||||||
help='Only valid for listing repository contents. Format output as JSON. '
|
help='Only valid for listing repository contents. Format output as JSON. '
|
||||||
'The form of --format is ignored, '
|
'The form of ``--format`` is ignored, '
|
||||||
'but keys used in it are added to the JSON output. '
|
'but keys used in it are added to the JSON output. '
|
||||||
'Some keys are always present. Note: JSON can only represent text. '
|
'Some keys are always present. Note: JSON can only represent text. '
|
||||||
'A "barchive" key is therefore not available.')
|
'A "barchive" key is therefore not available.')
|
||||||
subparser.add_argument('--json-lines', action='store_true',
|
subparser.add_argument('--json-lines', action='store_true',
|
||||||
help='Only valid for listing archive contents. Format output as JSON Lines. '
|
help='Only valid for listing archive contents. Format output as JSON Lines. '
|
||||||
'The form of --format is ignored, '
|
'The form of ``--format`` is ignored, '
|
||||||
'but keys used in it are added to the JSON output. '
|
'but keys used in it are added to the JSON output. '
|
||||||
'Some keys are always present. Note: JSON can only represent text. '
|
'Some keys are always present. Note: JSON can only represent text. '
|
||||||
'A "bpath" key is therefore not available.')
|
'A "bpath" key is therefore not available.')
|
||||||
|
@ -3208,7 +3208,7 @@ def define_common_options(add_common_option):
|
||||||
- versions: when used with a repository mount, this gives a merged, versioned
|
- versions: when used with a repository mount, this gives a merged, versioned
|
||||||
view of the files in the archives. EXPERIMENTAL, layout may change in future.
|
view of the files in the archives. EXPERIMENTAL, layout may change in future.
|
||||||
- allow_damaged_files: by default damaged files (where missing chunks were
|
- allow_damaged_files: by default damaged files (where missing chunks were
|
||||||
replaced with runs of zeros by borg check --repair) are not readable and
|
replaced with runs of zeros by borg check ``--repair``) are not readable and
|
||||||
return EIO (I/O error). Set this option to read such files.
|
return EIO (I/O error). Set this option to read such files.
|
||||||
|
|
||||||
The BORG_MOUNT_DATA_CACHE_ENTRIES environment variable is meant for advanced users
|
The BORG_MOUNT_DATA_CACHE_ENTRIES environment variable is meant for advanced users
|
||||||
|
@ -3303,7 +3303,7 @@ def define_common_options(add_common_option):
|
||||||
Also, prune automatically removes checkpoint archives (incomplete archives left
|
Also, prune automatically removes checkpoint archives (incomplete archives left
|
||||||
behind by interrupted backup runs) except if the checkpoint is the latest
|
behind by interrupted backup runs) except if the checkpoint is the latest
|
||||||
archive (and thus still needed). Checkpoint archives are not considered when
|
archive (and thus still needed). Checkpoint archives are not considered when
|
||||||
comparing archive counts against the retention limits (--keep-X).
|
comparing archive counts against the retention limits (``--keep-X``).
|
||||||
|
|
||||||
If a prefix is set with -P, then only archives that start with the prefix are
|
If a prefix is set with -P, then only archives that start with the prefix are
|
||||||
considered for deletion and only those archives count towards the totals
|
considered for deletion and only those archives count towards the totals
|
||||||
|
@ -3316,14 +3316,14 @@ def define_common_options(add_common_option):
|
||||||
from different machines) in one shared repository, use one prune call per
|
from different machines) in one shared repository, use one prune call per
|
||||||
data set that matches only the respective archives using the -P option.
|
data set that matches only the respective archives using the -P option.
|
||||||
|
|
||||||
The "--keep-within" option takes an argument of the form "<int><char>",
|
The ``--keep-within`` option takes an argument of the form "<int><char>",
|
||||||
where char is "H", "d", "w", "m", "y". For example, "--keep-within 2d" means
|
where char is "H", "d", "w", "m", "y". For example, ``--keep-within 2d`` means
|
||||||
to keep all archives that were created within the past 48 hours.
|
to keep all archives that were created within the past 48 hours.
|
||||||
"1m" is taken to mean "31d". The archives kept with this option do not
|
"1m" is taken to mean "31d". The archives kept with this option do not
|
||||||
count towards the totals specified by any other options.
|
count towards the totals specified by any other options.
|
||||||
|
|
||||||
A good procedure is to thin out more and more the older your backups get.
|
A good procedure is to thin out more and more the older your backups get.
|
||||||
As an example, "--keep-daily 7" means to keep the latest backup on each day,
|
As an example, ``--keep-daily 7`` means to keep the latest backup on each day,
|
||||||
up to 7 most recent days with backups (days without backups do not count).
|
up to 7 most recent days with backups (days without backups do not count).
|
||||||
The rules are applied from secondly to yearly, and backups selected by previous
|
The rules are applied from secondly to yearly, and backups selected by previous
|
||||||
rules do not count towards those of later rules. The time that each backup
|
rules do not count towards those of later rules. The time that each backup
|
||||||
|
@ -3331,7 +3331,7 @@ def define_common_options(add_common_option):
|
||||||
the local timezone, and weeks go from Monday to Sunday. Specifying a
|
the local timezone, and weeks go from Monday to Sunday. Specifying a
|
||||||
negative number of archives to keep means that there is no limit.
|
negative number of archives to keep means that there is no limit.
|
||||||
|
|
||||||
The "--keep-last N" option is doing the same as "--keep-secondly N" (and it will
|
The ``--keep-last N`` option is doing the same as ``--keep-secondly N`` (and it will
|
||||||
keep the last N archives under the assumption that you do not create more than one
|
keep the last N archives under the assumption that you do not create more than one
|
||||||
backup archive in the same second).
|
backup archive in the same second).
|
||||||
""")
|
""")
|
||||||
|
@ -3487,33 +3487,33 @@ def define_common_options(add_common_option):
|
||||||
|
|
||||||
This is an *experimental* feature. Do *not* use this on your only backup.
|
This is an *experimental* feature. Do *not* use this on your only backup.
|
||||||
|
|
||||||
--exclude, --exclude-from, --exclude-if-present, --keep-exclude-tags, and PATH
|
``--exclude``, ``--exclude-from``, ``--exclude-if-present``, ``--keep-exclude-tags``, and PATH
|
||||||
have the exact same semantics as in "borg create". If PATHs are specified the
|
have the exact same semantics as in "borg create". If PATHs are specified the
|
||||||
resulting archive will only contain files from these PATHs.
|
resulting archive will only contain files from these PATHs.
|
||||||
|
|
||||||
Note that all paths in an archive are relative, therefore absolute patterns/paths
|
Note that all paths in an archive are relative, therefore absolute patterns/paths
|
||||||
will *not* match (--exclude, --exclude-from, PATHs).
|
will *not* match (``--exclude``, ``--exclude-from``, PATHs).
|
||||||
|
|
||||||
--recompress allows to change the compression of existing data in archives.
|
``--recompress`` allows to change the compression of existing data in archives.
|
||||||
Due to how Borg stores compressed size information this might display
|
Due to how Borg stores compressed size information this might display
|
||||||
incorrect information for archives that were not recreated at the same time.
|
incorrect information for archives that were not recreated at the same time.
|
||||||
There is no risk of data loss by this.
|
There is no risk of data loss by this.
|
||||||
|
|
||||||
--chunker-params will re-chunk all files in the archive, this can be
|
``--chunker-params`` will re-chunk all files in the archive, this can be
|
||||||
used to have upgraded Borg 0.xx or Attic archives deduplicate with
|
used to have upgraded Borg 0.xx or Attic archives deduplicate with
|
||||||
Borg 1.x archives.
|
Borg 1.x archives.
|
||||||
|
|
||||||
**USE WITH CAUTION.**
|
**USE WITH CAUTION.**
|
||||||
Depending on the PATHs and patterns given, recreate can be used to permanently
|
Depending on the PATHs and patterns given, recreate can be used to permanently
|
||||||
delete files from archives.
|
delete files from archives.
|
||||||
When in doubt, use "--dry-run --verbose --list" to see how patterns/PATHS are
|
When in doubt, use ``--dry-run --verbose --list`` to see how patterns/PATHS are
|
||||||
interpreted.
|
interpreted.
|
||||||
|
|
||||||
The archive being recreated is only removed after the operation completes. The
|
The archive being recreated is only removed after the operation completes. The
|
||||||
archive that is built during the operation exists at the same time at
|
archive that is built during the operation exists at the same time at
|
||||||
"<ARCHIVE>.recreate". The new archive will have a different archive ID.
|
"<ARCHIVE>.recreate". The new archive will have a different archive ID.
|
||||||
|
|
||||||
With --target the original archive is not replaced, instead a new archive is created.
|
With ``--target`` the original archive is not replaced, instead a new archive is created.
|
||||||
|
|
||||||
When rechunking space usage can be substantial, expect at least the entire
|
When rechunking space usage can be substantial, expect at least the entire
|
||||||
deduplicated size of the archives using the previous chunker params.
|
deduplicated size of the archives using the previous chunker params.
|
||||||
|
@ -3554,7 +3554,7 @@ def define_common_options(add_common_option):
|
||||||
'the given NAME')
|
'the given NAME')
|
||||||
exclude_group.add_argument('--keep-exclude-tags', '--keep-tag-files', dest='keep_exclude_tags',
|
exclude_group.add_argument('--keep-exclude-tags', '--keep-tag-files', dest='keep_exclude_tags',
|
||||||
action='store_true', default=False,
|
action='store_true', default=False,
|
||||||
help='if tag objects are specified with --exclude-if-present, don\'t omit the tag '
|
help='if tag objects are specified with ``--exclude-if-present``, don\'t omit the tag '
|
||||||
'objects themselves from the backup archive')
|
'objects themselves from the backup archive')
|
||||||
exclude_group.add_argument('--pattern',
|
exclude_group.add_argument('--pattern',
|
||||||
action=ArgparsePatternAction,
|
action=ArgparsePatternAction,
|
||||||
|
@ -3583,7 +3583,7 @@ def define_common_options(add_common_option):
|
||||||
'"borg help compression" command for details.')
|
'"borg help compression" command for details.')
|
||||||
archive_group.add_argument('--recompress', dest='recompress', nargs='?', default='never', const='if-different',
|
archive_group.add_argument('--recompress', dest='recompress', nargs='?', default='never', const='if-different',
|
||||||
choices=('never', 'if-different', 'always'),
|
choices=('never', 'if-different', 'always'),
|
||||||
help='recompress data chunks according to --compression if "if-different". '
|
help='recompress data chunks according to ``--compression`` if "if-different". '
|
||||||
'When "always", chunks that are already compressed that way are not skipped, '
|
'When "always", chunks that are already compressed that way are not skipped, '
|
||||||
'but compressed again. Only the algorithm is considered for "if-different", '
|
'but compressed again. Only the algorithm is considered for "if-different", '
|
||||||
'not the compression level (if any).')
|
'not the compression level (if any).')
|
||||||
|
@ -3871,7 +3871,7 @@ def add_archives_filters_args(subparser, sort_by=True, first_last=True):
|
||||||
group.add_argument('-a', '--glob-archives', dest='glob_archives', default=None,
|
group.add_argument('-a', '--glob-archives', dest='glob_archives', default=None,
|
||||||
help='only consider archive names matching the glob. '
|
help='only consider archive names matching the glob. '
|
||||||
'sh: rules apply, see "borg help patterns". '
|
'sh: rules apply, see "borg help patterns". '
|
||||||
'--prefix and --glob-archives are mutually exclusive.')
|
'``--prefix`` and ``--glob-archives`` are mutually exclusive.')
|
||||||
|
|
||||||
if sort_by:
|
if sort_by:
|
||||||
sort_by_default = 'timestamp'
|
sort_by_default = 'timestamp'
|
||||||
|
|
Loading…
Reference in a new issue