diff.rst.inc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .. _borg_diff:
  2. borg diff
  3. ---------
  4. ::
  5. borg diff <options> ARCHIVE1 ARCHIVE2 PATH
  6. positional arguments
  7. ARCHIVE1
  8. archive
  9. ARCHIVE2
  10. archive to compare with ARCHIVE1 (no repository location)
  11. PATH
  12. paths to compare; patterns are supported
  13. optional arguments
  14. ``-e PATTERN``, ``--exclude PATTERN``
  15. | exclude paths matching PATTERN
  16. ``--exclude-from EXCLUDEFILE``
  17. | read exclude patterns from EXCLUDEFILE, one per line
  18. ``--numeric-owner``
  19. | only consider numeric user and group identifiers
  20. ``--same-chunker-params``
  21. | Override check of chunker parameters.
  22. ``--sort``
  23. | Sort the output lines by file path.
  24. `Common options`_
  25. |
  26. Description
  27. ~~~~~~~~~~~
  28. This command finds differences in files (contents, user, group, mode) between archives.
  29. Both archives need to be in the same repository, and a repository location may only
  30. be specified for ARCHIVE1.
  31. For archives created with Borg 1.1 or newer diff automatically detects whether
  32. the archives are created with the same chunker params. If so, only chunk IDs
  33. are compared, which is very fast.
  34. For archives prior to Borg 1.1 chunk contents are compared by default.
  35. If you did not create the archives with different chunker params,
  36. pass --same-chunker-params.
  37. Note that the chunker params changed from Borg 0.xx to 1.0.
  38. See the output of the "borg help patterns" command for more help on exclude patterns.