check: clarify repair pack usage

This commit is contained in:
Michael Eischer 2024-02-10 20:29:11 +01:00
parent 527a3ff2b2
commit 69304cd74f
1 changed files with 8 additions and 1 deletions

View File

@ -77,7 +77,9 @@ somewhere. Please include the check output and additional information that might
help locate the problem.
If ``check`` detects damaged pack files, it will show instructions on how to repair
them. Please follow the steps from the next section first.
them using the ``repair pack`` command. Use that command instead of the "Repair the
index" section in this guide.
2. Backup the repository
************************
@ -106,6 +108,11 @@ whether your issue is already known and solved. Please take a look at the
3. Repair the index
*******************
.. note::
If the `check` command tells you to run `restic repair pack`, then use that
command instead. It will repair the damaged pack files and also update the index.
Restic relies on its index to contain correct information about what data is
stored in the repository. Thus, the first step to repair a repository is to
repair the index: