summaryrefslogtreecommitdiff
path: root/doc/special_remotes/web/comment_3_e6ce9bb92c973350852c9498b7ffb50f._comment
blob: 01b1b2a1c6bbafe620d996a3837af0341af5cbdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[[!comment format=sh
 username="spiderbit"
 avatar="http://cdn.libravatar.org/avatar/5c1baf041aa5516cb28a2618f7263a56"
 subject="dont have success with other download commands"
 date="2016-11-05T17:00:54Z"
 content="""
First a few questions:
1. is this backend supposed to be recursive or does it supports that?
2. does it need a download command in the following format: 
  <program> <url>

I assumed this 2 are true.

Well rsync, sftp and scp need a second <to> paramater, they did not work.

So I wrote a small wrapper to add the default \".\" as target location:

filename: rsync-get
#!/usr/bin/env bash
rsync -r \"$1\" .

sadly still no sucess:

~/annex $ git annex addurl -c annex.web-download-command=rsync-get mars:/mnt/data/folder/
addurl _mnt_data_folder_ (downloading mars:/mnt/data/folder/ ...) 
failed
git-annex: addurl: 1 failed
CallStack (from HasCallStack):
  error, called at ./CmdLine/Action.hs:41:28 in main:CmdLine.Action

I also tried it with a url to a file, in the case that it not supports recursive operations, that did not work, too.
"""]]