diff.rst.inc 8.1 KB

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