Skip to main content

check

8BitSafe-cli [common options] repo check [options] [REPOSITORY]
positional argumentsdescription
REPOSITORYrepository to check consistency of
optional argumentsdescriptiondefaultallowed
--fixTry to fix errors--
--extendedEnabled extended checks--
--cachesCheck the cachestruebool

Description

The check command verifies the consistency of a repository, the following is checked by default:

  • All data files
  • Index database
  • Caches

Extended

When the --extended flag is passed every object in the repository is loaded and verified which can take a long time depending on the size of the repository.

The extended check is mainly used as part of our automated testing, the normal check will detect any form of disk corruption and is much faster.

Remote storage

Running this command has no effect if you are using our remote storage. We store multiple copies of your data with protection against bit rot

Caches

We perform integrity checks on the local caches if an error is found and --fix is passed we simply delete the cache.

The cache will be automatically rebuilt when other operations are run, but they will likely be slower initially.

Example

info
8BitSafe-cli repo check D:\storage\backups\repo
[Cli-info] Check
[Repo-info] Unlocking repo
[Store-info] Checking objects extended: false fixErrors: false
[Store-info] Valid data file: 0
[Store-info] Valid data file: 1
[Store-info] Valid data file: 2
[Store-info] Valid data file: 3
[Store-info] Valid data file: 4
[Store-info] Valid data file: 5
[Store-info] Index db is valid
[Cli-info] No corruption detected