check
8BitSafe-cli [common options] repo check [options] [REPOSITORY]
| positional arguments | description |
|---|---|
| REPOSITORY | repository to check consistency of |
| optional arguments | description | default | allowed |
|---|---|---|---|
| --fix | Try to fix errors | - | - |
| --extended | Enabled extended checks | - | - |
| --caches | Check the caches | true | bool |
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.
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
- Windows
- Unix
8BitSafe-cli.exe repo check D:\storage\backups\repo
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