summaryrefslogtreecommitdiff
path: root/doc/walkthrough/optimizing_repositories.mdwn
blob: 0f17f1deae48fe4703ac9e14d1568d2c0c782c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Once you have multiple repositories, and have perhaps configured numcopies,
any given file can have many more copies than is needed, or perhaps fewer
than you would like. Fsck can detect the latter problem, but there's another
command that can help deal with both problems.

The optimize subcommand either gets or drops file content, as needed,
to work toward meeting the configured numcopies setting.

	# git annex optimize
	get my_cool_big_file (from laptop...) ok
	drop other_file ok
	# git annex optimize --numcopies=2
	get other_file ok