This commit is contained in:
Joey Hess 2011-09-15 15:39:48 -04:00
parent e47d1fd43e
commit aedf84f7d6

View file

@ -4,8 +4,8 @@ than you would like. How to manage this?
The whereis subcommand can be used to see how many copies of a file are known,
but then you have to decide what to get or drop. In this example, there
are rather too many copies of `other_file` and perhaps not enough of the
other file.
are perhaps not enough copies of the first file, and too many of the second
file.
# cd /media/usbdrive
# git annex whereis
@ -17,9 +17,8 @@ other file.
7570b02e-15e9-11e0-adf0-9f3f94cb2eaa -- backup drive
What would be handy is some automated versions of get and drop, that only
get a file if there are not yet enough copies of it, or only drop a file
if there are too many copies. Well, these exist, just use the --auto
option.
gets a file if there are not yet enough copies of it, or only drops a file
if there are too many copies. Well, these exist, just use the --auto option.
# git annex get --auto --numcopies=2
get my_cool_big_file (from laptop...) ok