git-annex: multiple web remotes?

Joey Hess joey at kitenet.net
Wed Dec 28 17:24:25 CET 2011


Olaf TNSB wrote:
> Hi joeyh and other annex-types,
> 
> I've got a couple of questions regarding the web special remote in
> git-annex.
> 
> Firstly, I was wondering if it was possible(*), or too technically
> difficult(!), to have multiple web remotes for files in an annex. For
> example, I can find a few different links for Graham's 'On Lisp' and I'd
> like to have my X local copies in annexes and also a couple of URLs for the
> book in my annex.

It does support storing multiple urls, and will try each until one
works. I just don't have much of an interface for adding/removing the urls.

If you're using a backend like SHA1, then if you simply run addurl on
both urls, and they have the same content, you'll get two annexed files
that share a key (and can then delete on of the files). git-annex does
record that both urls can be used to obtain the key. So that's one way.

Or, you can check out the git-annex branch and look in remote/web/ for the
files that contain the urls, as documented at 
http://git-annex.branchable.com/internals/ 

> Second question, & it's probably a RTFM, how do I find out what URL is
> associated with a file?  'git annex whereis file.name' only tells me 'web'
> as the annex location.

No interface currently, but see above.

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.madduck.net/pipermail/vcs-home/attachments/20111228/73538ce6/attachment.pgp>


More information about the vcs-home mailing list