diff.rst.inc 11 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. | **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. | | ``--exclude-caches`` | exclude directories that contain a CACHEDIR.TAG file (http://www.brynosaurus.com/cachedir/spec.html) |
  37. +-------------------------------------------------------+-----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  38. | | ``--exclude-if-present NAME`` | exclude directories that are tagged by containing a filesystem object with the given NAME |
  39. +-------------------------------------------------------+-----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  40. | | ``--keep-exclude-tags``, ``--keep-tag-files`` | if tag objects are specified with ``--exclude-if-present``, don't omit the tag objects themselves from the backup archive |
  41. +-------------------------------------------------------+-----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  42. | | ``--pattern PATTERN`` | experimental: include/exclude paths matching PATTERN |
  43. +-------------------------------------------------------+-----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  44. | | ``--patterns-from PATTERNFILE`` | experimental: 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. optional arguments
  60. --numeric-owner only consider numeric user and group identifiers
  61. --same-chunker-params Override check of chunker parameters.
  62. --sort Sort the output lines by file path.
  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. --exclude-caches exclude directories that contain a CACHEDIR.TAG file (http://www.brynosaurus.com/cachedir/spec.html)
  69. --exclude-if-present NAME exclude directories that are tagged by containing a filesystem object with the given NAME
  70. --keep-exclude-tags, --keep-tag-files if tag objects are specified with ``--exclude-if-present``, don't omit the tag objects themselves from the backup archive
  71. --pattern PATTERN experimental: include/exclude paths matching PATTERN
  72. --patterns-from PATTERNFILE experimental: 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. See the output of the "borg help patterns" command for more help on exclude patterns.