diff.rst.inc 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_diff:
  3. borg diff
  4. ---------
  5. ::
  6. borg [common options] diff <options> REPO_ARCHIVE1 ARCHIVE2 PATH
  7. positional arguments
  8. REPO_ARCHIVE1
  9. repository location and ARCHIVE1 name
  10. ARCHIVE2
  11. ARCHIVE2 name (no repository location allowed)
  12. PATH
  13. paths of items inside the archives to compare; patterns are supported
  14. optional arguments
  15. ``--numeric-owner``
  16. | only consider numeric user and group identifiers
  17. ``--same-chunker-params``
  18. | Override check of chunker parameters.
  19. ``--sort``
  20. | Sort the output lines by file path.
  21. :ref:`common_options`
  22. |
  23. Exclusion options
  24. ``-e PATTERN``, ``--exclude PATTERN``
  25. | exclude paths matching PATTERN
  26. ``--exclude-from EXCLUDEFILE``
  27. | read exclude patterns from EXCLUDEFILE, one per line
  28. ``--exclude-caches``
  29. | exclude directories that contain a CACHEDIR.TAG file (http://www.brynosaurus.com/cachedir/spec.html)
  30. ``--exclude-if-present NAME``
  31. | exclude directories that are tagged by containing a filesystem object with the given NAME
  32. ``--keep-exclude-tags``, ``--keep-tag-files``
  33. | if tag objects are specified with --exclude-if-present, don't omit the tag objects themselves from the backup archive
  34. ``--pattern PATTERN``
  35. | include/exclude paths matching PATTERN
  36. ``--patterns-from PATTERNFILE``
  37. | read include/exclude patterns from PATTERNFILE, one per line
  38. Description
  39. ~~~~~~~~~~~
  40. This command finds differences (file contents, user/group/mode) between archives.
  41. A repository location and an archive name must be specified for REPO_ARCHIVE1.
  42. ARCHIVE2 is just another archive name in same repository (no repository location
  43. allowed).
  44. For archives created with Borg 1.1 or newer diff automatically detects whether
  45. the archives are created with the same chunker params. If so, only chunk IDs
  46. are compared, which is very fast.
  47. For archives prior to Borg 1.1 chunk contents are compared by default.
  48. If you did not create the archives with different chunker params,
  49. pass --same-chunker-params.
  50. Note that the chunker params changed from Borg 0.xx to 1.0.
  51. See the output of the "borg help patterns" command for more help on exclude patterns.