diff.rst.inc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_diff:
  3. borg diff
  4. ---------
  5. .. code-block:: none
  6. borg [common options] diff [options] REPO_ARCHIVE1 ARCHIVE2 PATH
  7. REPO_ARCHIVE1
  8. repository location and ARCHIVE1 name
  9. ARCHIVE2
  10. ARCHIVE2 name (no repository location allowed)
  11. PATH
  12. paths of items inside the archives to compare; patterns are supported
  13. optional arguments
  14. --numeric-owner only consider numeric user and group identifiers
  15. --same-chunker-params Override check of chunker parameters.
  16. --sort Sort the output lines by file path.
  17. .. class:: borg-common-opt-ref
  18. :ref:`common_options`
  19. Exclusion options
  20. -e PATTERN, --exclude PATTERN exclude paths matching PATTERN
  21. --exclude-from EXCLUDEFILE read exclude patterns from EXCLUDEFILE, one per line
  22. --exclude-caches exclude directories that contain a CACHEDIR.TAG file (http://www.brynosaurus.com/cachedir/spec.html)
  23. --exclude-if-present NAME exclude directories that are tagged by containing a filesystem object with the given NAME
  24. --keep-exclude-tags, --keep-tag-files if tag objects are specified with --exclude-if-present, don't omit the tag objects themselves from the backup archive
  25. --pattern PATTERN experimental: include/exclude paths matching PATTERN
  26. --patterns-from PATTERNFILE experimental: read include/exclude patterns from PATTERNFILE, one per line
  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.