diff.rst.inc 7.5 KB

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