d66535f065
* numcopies: New command, sets global numcopies value that is seen by all clones of a repository. * The annex.numcopies git config setting is deprecated. Once the numcopies command is used to set the global number of copies, any annex.numcopies git configs will be ignored. * assistant: Make the prefs page set the global numcopies. This global numcopies setting is needed to let preferred content expressions operate on numcopies. It's also convenient, because typically if you want git-annex to preserve N copies of files in a repo, you want it to do that no matter which repo it's running in. Making it global avoids needing to warn the user about gotchas involving inconsistent annex.numcopies settings. (See changes to doc/numcopies.mdwn.) Added a new variety of git-annex branch log file, that holds only 1 value. Will probably be useful for other stuff later. This commit was sponsored by Nicolas Pouillard.
16 lines
674 B
Markdown
16 lines
674 B
Markdown
You can use the fsck subcommand to check for problems in your data. What
|
|
can be checked depends on the key-value [[backend|backends]] you've used
|
|
for the data. For example, when you use the SHA1 backend, fsck will verify
|
|
that the checksums of your files are good. Fsck also checks that the
|
|
[[numcopies|copies]] setting is satisfied for all files.
|
|
|
|
# git annex fsck
|
|
fsck some_file (checksum...) ok
|
|
fsck my_cool_big_file (checksum...) ok
|
|
...
|
|
|
|
You can also specify the files to check. This is particularly useful if
|
|
you're using sha1 and don't want to spend a long time checksumming everything.
|
|
|
|
# git annex fsck my_cool_big_file
|
|
fsck my_cool_big_file (checksum...) ok
|