diff.rst.inc 2.3 KB

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