summaryrefslogtreecommitdiff
path: root/doc/walkthrough
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-07-01 16:01:26 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-07-01 16:05:06 -0400
commita140f7148f3ea0bef2d8c060c7847b3d1be4d25e (patch)
tree1b3f5e68124349f5ed3b88d3feebd3c825ff8d5f /doc/walkthrough
parent2cdacfbae6519eceed2d5dcbea052de244a0b8ec (diff)
documentation for using the web
Diffstat (limited to 'doc/walkthrough')
-rw-r--r--doc/walkthrough/using_the_web.mdwn32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/walkthrough/using_the_web.mdwn b/doc/walkthrough/using_the_web.mdwn
new file mode 100644
index 000000000..9d5525758
--- /dev/null
+++ b/doc/walkthrough/using_the_web.mdwn
@@ -0,0 +1,32 @@
+The web can be used as a [[special_remote|special_remotes]] too.
+
+ # git annex addurl http://example.com/video.mpeg
+ addurl video.mpeg (downloading http://example.com/video.mpeg)
+ ########################################################## 100.0%
+ ok
+
+Now the file is downloaded, and has been added to the annex like any other
+file. So it can be copied to other repositories, and so on.
+
+Note that git-annex assumes that, if the web site does not 404, the file is
+still present on the web, and this counts as one [[copy|copies]] of the
+file. So it will let you remove your last copy, trusting it can be
+downloaded again:
+
+ # git annex drop video.mpeg
+ drop video.mpeg (checking http://example.com/video.mpeg) ok
+
+If you don't [[trust]] the web to this degree, just let git-annex know:
+
+ # git annex untrust web
+ untrust web ok
+
+With the result that it will hang onto files:
+
+ # git annex drop video.mpeg
+ drop video.mpeg (unsafe)
+ Could only verify the existence of 0 out of 1 necessary copies
+ Also these untrusted repositories may contain the file:
+ 00000000-0000-0000-0000-000000000001 -- web
+ (Use --force to override this check, or adjust annex.numcopies.)
+ failed