diff options
author | Joey Hess <joey@kitenet.net> | 2011-02-27 12:45:48 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-02-27 12:45:48 -0400 |
commit | 98e246b49b3c4fed319fe7bc1e900ba20ebfc9e1 (patch) | |
tree | ad49ec6baf1b57f3acc8b694bdfc1bbd0986021f /doc/walkthrough/using_the_URL_backend.mdwn | |
parent | 9e49a71282def0b6d6f7507d59eb0f805c6e0073 (diff) |
split the walkthrough and inline back together
Diffstat (limited to 'doc/walkthrough/using_the_URL_backend.mdwn')
-rw-r--r-- | doc/walkthrough/using_the_URL_backend.mdwn | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/walkthrough/using_the_URL_backend.mdwn b/doc/walkthrough/using_the_URL_backend.mdwn new file mode 100644 index 000000000..fe79a6be2 --- /dev/null +++ b/doc/walkthrough/using_the_URL_backend.mdwn @@ -0,0 +1,24 @@ +git-annex has multiple key-value [[backends]]. So far this walkthrough has +demonstrated the default, WORM (Write Once, Read Many) backend. + +Another handy backend is the URL backend, which can fetch file's content +from remote URLs. Here's how to set up some files in your repository +that use this backend: + + # git annex fromkey --backend=URL --key=http://www.archive.org/somefile somefile + fromkey somefile ok + # git commit -m "added a file from the Internet Archive" + +Now you if you ask git-annex to get that file, it will download it, +and cache it locally. + + # git annex get somefile + get somefile (downloading) + #########################################################################100.0% + ok + +You can always drop files downloaded by the URL backend. It is assumed +that the URL is stable; no local backup is kept. + + # git annex drop somefile + drop somefile (ok) |