1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 01:06:50 +00:00

docs: mention tar --compare (#5880)

docs: mention tar --compare (compare archive to fs files)
This commit is contained in:
Dmitry Astapov 2021-07-03 16:10:19 +01:00 committed by GitHub
parent 77ffb083e6
commit a35c7add95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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?