2
0

diff.rst.inc 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_diff:
  3. borg diff
  4. ---------
  5. .. code-block:: none
  6. borg [common options] diff [options] ARCHIVE1 ARCHIVE2 [PATH...]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  10. | **positional arguments** |
  11. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  12. | | ``ARCHIVE1`` | ARCHIVE1 name |
  13. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  14. | | ``ARCHIVE2`` | ARCHIVE2 name |
  15. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  16. | | ``PATH`` | paths of items inside the archives to compare; patterns are supported |
  17. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  18. | **options** |
  19. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  20. | | ``--numeric-ids`` | only consider numeric user and group identifiers |
  21. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  22. | | ``--same-chunker-params`` | Override check of chunker parameters. |
  23. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  24. | | ``--sort`` | Sort the output lines by file path. |
  25. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  26. | | ``--json-lines`` | Format output as JSON Lines. |
  27. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  28. | .. class:: borg-common-opt-ref |
  29. | |
  30. | :ref:`common_options` |
  31. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  32. | **Exclusion options** |
  33. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  34. | | ``-e PATTERN``, ``--exclude PATTERN`` | exclude paths matching PATTERN |
  35. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  36. | | ``--exclude-from EXCLUDEFILE`` | read exclude patterns from EXCLUDEFILE, one per line |
  37. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  38. | | ``--pattern PATTERN`` | include/exclude paths matching PATTERN |
  39. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  40. | | ``--patterns-from PATTERNFILE`` | read include/exclude patterns from PATTERNFILE, one per line |
  41. +-------------------------------------------------------+---------------------------------------+-----------------------------------------------------------------------+
  42. .. raw:: html
  43. <script type='text/javascript'>
  44. $(document).ready(function () {
  45. $('.borg-options-table colgroup').remove();
  46. })
  47. </script>
  48. .. only:: latex
  49. ARCHIVE1
  50. ARCHIVE1 name
  51. ARCHIVE2
  52. ARCHIVE2 name
  53. PATH
  54. paths of items inside the archives to compare; patterns are supported
  55. options
  56. --numeric-ids only consider numeric user and group identifiers
  57. --same-chunker-params Override check of chunker parameters.
  58. --sort Sort the output lines by file path.
  59. --json-lines Format output as JSON Lines.
  60. :ref:`common_options`
  61. |
  62. Exclusion options
  63. -e PATTERN, --exclude PATTERN exclude paths matching PATTERN
  64. --exclude-from EXCLUDEFILE read exclude patterns from EXCLUDEFILE, one per line
  65. --pattern PATTERN include/exclude paths matching PATTERN
  66. --patterns-from PATTERNFILE read include/exclude patterns from PATTERNFILE, one per line
  67. Description
  68. ~~~~~~~~~~~
  69. This command finds differences (file contents, user/group/mode) between archives.
  70. A repository location and an archive name must be specified for REPO::ARCHIVE1.
  71. ARCHIVE2 is just another archive name in same repository (no repository location
  72. allowed).
  73. For archives created with Borg 1.1 or newer diff automatically detects whether
  74. the archives are created with the same chunker params. If so, only chunk IDs
  75. are compared, which is very fast.
  76. For archives prior to Borg 1.1 chunk contents are compared by default.
  77. If you did not create the archives with different chunker params,
  78. pass ``--same-chunker-params``.
  79. Note that the chunker params changed from Borg 0.xx to 1.0.
  80. For more help on include/exclude patterns, see the :ref:`borg_patterns` command output.