this is not all run as root
This commit is contained in:
parent
77a1e33093
commit
f4c49b8f81
22 changed files with 89 additions and 89 deletions
|
@ -7,8 +7,8 @@ but then you have to decide what to get or drop. In this example, there
|
|||
are perhaps not enough copies of the first file, and too many of the second
|
||||
file.
|
||||
|
||||
# cd /media/usbdrive
|
||||
# git annex whereis
|
||||
$ cd /media/usbdrive
|
||||
$ git annex whereis
|
||||
whereis my_cool_big_file (1 copy)
|
||||
0c443de8-e644-11df-acbf-f7cd7ca6210d -- laptop
|
||||
whereis other_file (3 copies)
|
||||
|
@ -20,15 +20,15 @@ What would be handy is some automated versions of get and drop, that only
|
|||
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
|
||||
$ git annex get --auto --numcopies=2
|
||||
get my_cool_big_file (from laptop...) ok
|
||||
# git annex drop --auto --numcopies=2
|
||||
$ git annex drop --auto --numcopies=2
|
||||
drop other_file ok
|
||||
|
||||
With two quick commands, git-annex was able to decide for you how to
|
||||
work toward having two copies of your files.
|
||||
|
||||
# git annex whereis
|
||||
$ git annex whereis
|
||||
whereis my_cool_big_file (2 copies)
|
||||
0c443de8-e644-11df-acbf-f7cd7ca6210d -- laptop
|
||||
62b39bbe-4149-11e0-af01-bb89245a1e61 -- usb drive [here]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue