summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawkSq2FDpK2n66QRUxtqqdbyDuwgbQmUWus <Jimmy@web>2011-04-29 10:33:27 +0000
committerGravatar admin <admin@branchable.com>2011-04-29 10:33:27 +0000
commitf581481a75d6f098b622f2079aa183e06c1273fc (patch)
treeb586aacfdafb3c45bf51f19e43aab9848f29a2f0
parenteef3f634e9f92e7af486e5ee4afdac9a79b034cf (diff)
-rw-r--r--doc/forum/tips:_special__95__remotes__47__hook_with_tahoe-lafs.mdwn20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/forum/tips:_special__95__remotes__47__hook_with_tahoe-lafs.mdwn b/doc/forum/tips:_special__95__remotes__47__hook_with_tahoe-lafs.mdwn
new file mode 100644
index 000000000..2d04a4694
--- /dev/null
+++ b/doc/forum/tips:_special__95__remotes__47__hook_with_tahoe-lafs.mdwn
@@ -0,0 +1,20 @@
+This is work in progress, since there is now a "hook" for users to plug in whatever they want on the back end, here's my recipe for using tahoe-lafs as a remote, this is a copy and paste the relavent section from my .git/config file
+
+ tahoe-store-hook = tahoe put $ANNEX_FILE tahoe:$ANNEX_KEY
+ tahoe-retrieve-hook = tahoe get tahoe:$ANNEX_KEY $ANNEX_FILE
+ tahoe-remove-hook = tahoe rm tahoe:$ANNEX_KEY
+ tahoe-checkpresent-hook = tahoe ls tahoe:$ANNEX_KEY 2>&1 || echo FAIL
+
+The only quirk I've noticed is this...
+
+<pre>
+$ git annex whereis .
+whereis frink.jar (2 copies)
+ 084603a8-7243-11e0-b1f5-83102bcd7953 -- testtest <-- here
+ 1d1bc312-7243-11e0-a9ce-5f10c0ce9b0a
+ok
+</pre>
+
+1d1bc312-7243-11e0-a9ce-5f10c0ce9b0a is my [[!google tahoe-lafs]] remote, but there is no label/description on it. The checkpresent-hook was a little confusing when I was setting up, I'm currently unsure if I am doing the right thing or not with my hook. My get and put commands are a little verbose for now, i might redirect it to /dev/null once I am happier with the overall performance/behaviour my setup.
+
+Other than the quirks above, I am able to put and get files from my tahoe-lafs remote. The only thing that I have not figured out is how to "remove a file" on the remote to free up space on the remote.