I am investigating how to create special remotes using the library Lykos153 / AnnexRemote. I have copied this file locally, renamed it, set it up as needed, but can not initialise a remote with it.
I get this:
git annex initremote foo type=external externaltype=precomp encryption=none directory=/z/old/1111
initremote foo
git-annex: Unexpected parameters: directory
failed
git-annex: initremote: 1 failed
The order of the arguments make no difference. Do I need to somehow register parameters now, that was not required before? Or something else?
This should only happen if your program is responding to LISTCONFIGS with a list that does not include that parameter.
If it responds with UNSUPPORTED-REQUEST, all configs will be allowed.
I'm not familiar with the python library, but I guess it is doing that, and probably has a way to specify what configs to list.
I found out how to do it after reading his source code for the Google Drive remote.
Feel free to have a look around my remotes <github.com/cardoso-neto/git-annex-remote-manytars> <github.com/cardoso-neto/git-annex-remote-manyzips> which use his helper module.
To summarize it, you should override init and list your configs there.
Apparently none of them worked, so here they are again:
github/Lykos153/git-annex-remote-googledrive
github/cardoso-neto/git-annex-remote-manytars
github/cardoso-neto/git-annex-remote-manyzips
github/Lykos153/AnnexRemote
These are some interesting special remotes. I don't know how general the use case for them is (and I wonder if something like bup or ddar meets the same basic use case), but it seems perhaps worth including them in the big list of special remotes. What do you think?
This feels like such an honor. hahah
I would absolutely love that.
Just give me a few days to get it working with
pip
(so people don't have to mess around with their $PATH), document it better, and rungit annex testremote
a bazillion times on it.Thank you for being awesome, Joey, and writing this awesome tool.