Created question for rsync special remote on non-standard ssh port

This commit is contained in:
https://www.google.com/accounts/o8/id?id=AItOawnldTTAP8PAifJUmqhRar6RAWNWlRcencw 2012-11-22 20:07:03 +00:00 committed by admin
parent 0d299b63c1
commit e94195f257

View file

@ -0,0 +1,13 @@
I want to setup a rsync special remote on my server with a non-standard ssh port.
I tried the following steps:
git annex initremote rsync-encrypted type=rsync rsyncurl=1.2.3.4:/encrypted-annex encryption=AAAAAAAAA
git config remote.rsync-encrypted.annex-rsync-options "-e \'ssh -p 443\'"
But I just get this error:
[2012-11-22 21:04:30 CET] read: rsync ["-e","'ssh","-p","443'","--progress","--recursive","--partial","-- partial-dir=.rsync-partial","/home/marco/annex/.git/annex/tmp/rsynctmp/15309/","1.2.3.4:/encrypted-annex"]
Missing trailing-' in remote-shell command.
I tried some ways to escape the config but I don't have a clue. Anybody?