浏览代码

docs: mention tar --compare (#5880)

docs: mention tar --compare (compare archive to fs files)
Dmitry Astapov 3 年之前
父节点
当前提交
a35c7add95
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      docs/faq.rst

+ 11 - 0
docs/faq.rst

@@ -230,6 +230,17 @@ all the part files and manually concatenate them together.
 
 For more details, see :ref:`checkpoints_parts`.
 
+How can I compare contents of an archive to my local filesystem?
+-----------------------------------------------------------------
+
+You can instruct ``export-tar`` to send a tar stream to the stdout, and
+then use ``tar`` to perform the comparison:
+
+::
+
+    borg export-tar /path/to/repo::archive-name - | tar --compare -f - -C /path/to/compare/to
+
+
 .. _faq_corrupt_repo:
 
 My repository is corrupt, how can I restore from an older copy of it?