From a35c7add951209c50cf1dda636c5869db07465f4 Mon Sep 17 00:00:00 2001 From: Dmitry Astapov Date: Sat, 3 Jul 2021 16:10:19 +0100 Subject: [PATCH] docs: mention tar --compare (#5880) docs: mention tar --compare (compare archive to fs files) --- docs/faq.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/faq.rst b/docs/faq.rst index 22440b0d5..e6b4e529c 100644 --- a/docs/faq.rst +++ b/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?