global numcopies setting
* 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.
This commit is contained in:
parent
ecd4c35d7e
commit
d66535f065
25 changed files with 246 additions and 45 deletions
|
@ -2,7 +2,7 @@ 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
|
||||
annex.numcopies setting is satisfied for all files.
|
||||
[[numcopies|copies]] setting is satisfied for all files.
|
||||
|
||||
# git annex fsck
|
||||
fsck some_file (checksum...) ok
|
||||
|
|
|
@ -10,12 +10,12 @@ you'll see something like this.
|
|||
Try making some of these repositories available:
|
||||
58d84e8a-d9ae-11df-a1aa-ab9aa8c00826 -- portable USB drive
|
||||
ca20064c-dbb5-11df-b2fe-002170d25c55 -- backup SATA drive
|
||||
(Use --force to override this check, or adjust annex.numcopies.)
|
||||
(Use --force to override this check, or adjust numcopies.)
|
||||
failed
|
||||
drop other.iso (unsafe)
|
||||
Could only verify the existence of 0 out of 1 necessary copies
|
||||
No other repository is known to contain the file.
|
||||
(Use --force to override this check, or adjust annex.numcopies.)
|
||||
(Use --force to override this check, or adjust numcopies.)
|
||||
failed
|
||||
|
||||
Here you might --force it to drop `important_file` if you [[trust]] your backup.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue