diff.rst.inc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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> ARCHIVE1 ARCHIVE2 PATH
  7. positional arguments
  8. ARCHIVE1
  9. archive
  10. ARCHIVE2
  11. archive to compare with ARCHIVE1 (no repository location)
  12. PATH
  13. paths 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 in files (contents, user, group, mode) between archives.
  30. Both archives need to be in the same repository, and a repository location may only
  31. be specified for ARCHIVE1.
  32. For archives created with Borg 1.1 or newer diff automatically detects whether
  33. the archives are created with the same chunker params. If so, only chunk IDs
  34. are compared, which is very fast.
  35. For archives prior to Borg 1.1 chunk contents are compared by default.
  36. If you did not create the archives with different chunker params,
  37. pass --same-chunker-params.
  38. Note that the chunker params changed from Borg 0.xx to 1.0.
  39. See the output of the "borg help patterns" command for more help on exclude patterns.