Explorar el Código

docs: mention tar --compare (#5880)

docs: mention tar --compare (compare archive to fs files)
Dmitry Astapov hace 3 años
padre
commit
8b0e0da4dc
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      docs/faq.rst

+ 12 - 0
docs/faq.rst

@@ -231,6 +231,18 @@ You could do that (via borg config REPO append_only 0/1), but using different
 ssh keys and different entries in ``authorized_keys`` is much easier and also
 maybe has less potential of things going wrong somehow.
 
+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 machine goes to sleep causing `Broken pipe`
 ----------------------------------------------