diff.rst.inc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 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. ``-e PATTERN``, ``--exclude PATTERN``
  16. | exclude paths matching PATTERN
  17. ``--exclude-from EXCLUDEFILE``
  18. | read exclude patterns from EXCLUDEFILE, one per line
  19. ``--numeric-owner``
  20. | only consider numeric user and group identifiers
  21. ``--same-chunker-params``
  22. | Override check of chunker parameters.
  23. ``--sort``
  24. | Sort the output lines by file path.
  25. `Common options`_
  26. |
  27. Description
  28. ~~~~~~~~~~~
  29. This command finds differences (file contents, user/group/mode) between archives.
  30. A repository location and an archive name must be specified for REPO_ARCHIVE1.
  31. ARCHIVE2 is just another archive name in same repository (no repository location
  32. allowed).
  33. For archives created with Borg 1.1 or newer diff automatically detects whether
  34. the archives are created with the same chunker params. If so, only chunk IDs
  35. are compared, which is very fast.
  36. For archives prior to Borg 1.1 chunk contents are compared by default.
  37. If you did not create the archives with different chunker params,
  38. pass --same-chunker-params.
  39. Note that the chunker params changed from Borg 0.xx to 1.0.
  40. See the output of the "borg help patterns" command for more help on exclude patterns.