diff.rst.inc 8.6 KB

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