From 7349e7db8cc54849d36aca800e3355ec3be9c33d Mon Sep 17 00:00:00 2001 From: Winfried Plappert <18740761+wplapper@users.noreply.github.com> Date: Fri, 8 May 2026 14:15:32 +0100 Subject: [PATCH] check - update documentation --- doc/045_working_with_repos.rst | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/doc/045_working_with_repos.rst b/doc/045_working_with_repos.rst index a6742cf0e..b2ea8cce1 100644 --- a/doc/045_working_with_repos.rst +++ b/doc/045_working_with_repos.rst @@ -464,13 +464,10 @@ If the repository structure is intact, restic will show that ``no errors were fo check snapshots, trees and blobs no errors were found -By default, check creates a new temporary cache directory to verify that the -data stored in the repository is intact. To reuse the existing cache, you can -use the ``--with-cache`` flag. - -If the cache directory is not explicitly set, then ``check`` creates its -temporary cache directory in the temporary directory, see :ref:`temporary_files`. -Otherwise, the specified cache directory is used, as described in :ref:`caching`. +By default, ``check`` will use the current cache, and it will verify each cache object before +proceeding to make sure that there is no bit rot in the local cache. You can +explicitely request ``check`` to acquire a temporary cache via option ``--temporary-cache``. +Alternative you can tell ``check`` not to verify the cache by using option ``--no-cache-verify``. By default, the ``check`` command does not verify that the actual pack files on disk in the repository are unmodified, because doing so requires reading