github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/docs/cli/cozy-stack_instances_fsck.md (about) 1 ## cozy-stack instances fsck 2 3 Check a vfs 4 5 ### Synopsis 6 7 8 The cozy-stack fsck command checks that the files in the VFS are not 9 desynchronized, ie a file present in CouchDB but not swift/localfs, or present 10 in swift/localfs but not couchdb. 11 12 There are 2 steps: 13 14 - index integrity checks that there are nothing wrong in the index (CouchDB), 15 like a file present in a directory that has been deleted 16 - files consistency checks that the files are the same in the index (CouchDB) 17 and the storage (Swift or localfs). 18 19 By default, both operations are done, but you can choose one or the other via 20 the flags. 21 22 23 ``` 24 cozy-stack instances fsck <domain> [flags] 25 ``` 26 27 ### Options 28 29 ``` 30 --fail-fast Stop the FSCK on the first error 31 --files-consistency Check the files consistency only (between CouchDB and Swift) 32 -h, --help help for fsck 33 --index-integrity Check the index integrity only 34 --json Output more informations in JSON format 35 ``` 36 37 ### Options inherited from parent commands 38 39 ``` 40 --admin-host string administration server host (default "localhost") 41 --admin-port int administration server port (default 6060) 42 -c, --config string configuration file (default "$HOME/.cozy.yaml") 43 --host string server host (default "localhost") 44 -p, --port int server port (default 8080) 45 ``` 46 47 ### SEE ALSO 48 49 * [cozy-stack instances](cozy-stack_instances.md) - Manage instances of a stack 50