2015-03-23 22:20:42 +00:00
|
|
|
# NAME
|
|
|
|
|
|
|
|
git-annex numcopies - configure desired number of copies
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
git annex numcopies `N`
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
Tells git-annex how many copies it should preserve of files, over all
|
2017-01-30 19:11:26 +00:00
|
|
|
repositories. The default is 1.
|
2015-03-23 22:20:42 +00:00
|
|
|
|
|
|
|
Run without a number to get the current value.
|
|
|
|
|
2017-01-30 19:11:26 +00:00
|
|
|
This configuration is stored in the git-annex branch, so it will be seen
|
2021-01-05 18:22:27 +00:00
|
|
|
by all clones of the repository. It can be overridden on a per-file basis
|
|
|
|
by the annex.numcopies setting in .gitattributes files, or can be
|
|
|
|
overridden temporarily with the --numcopies option.
|
2017-01-30 19:11:26 +00:00
|
|
|
|
2015-03-23 22:20:42 +00:00
|
|
|
When git-annex is asked to drop a file, it first verifies that the
|
2021-01-05 18:22:27 +00:00
|
|
|
number of copies can be satisfied among all the other
|
2015-03-23 22:20:42 +00:00
|
|
|
repositories that have a copy of the file.
|
2021-01-05 18:22:27 +00:00
|
|
|
|
2021-01-06 18:11:08 +00:00
|
|
|
In unusual situations, involving special remotes that do not support
|
|
|
|
locking, and concurrent drops of the same content from multiple
|
|
|
|
repositories, git-annex may violate the numcopies setting. It still
|
|
|
|
guarantees at least 1 copy is preserved. This can be configured by
|
|
|
|
using [[git-annex-mincopies]](1)
|
2015-03-23 22:20:42 +00:00
|
|
|
|
2021-05-10 19:00:13 +00:00
|
|
|
# OPTIONS
|
|
|
|
|
|
|
|
* The [[git-annex-common-options]](1) can be used.
|
|
|
|
|
2015-03-23 22:20:42 +00:00
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
[[git-annex]](1)
|
2021-01-06 18:11:08 +00:00
|
|
|
[[git-annex-mincopies]](1)
|
2015-03-23 22:20:42 +00:00
|
|
|
|
|
|
|
# AUTHOR
|
|
|
|
|
|
|
|
Joey Hess <id@joeyh.name>
|
|
|
|
|
|
|
|
Warning: Automatically converted into a man page by mdwn2man. Edit with care.
|