m = re.match('ssh\+rsync://([^@:]+@[^/:]+)(:|)(.*)', target)
if m:
return not rsync_ssh_file(src, m.group(1) + ":" + m.group(3))
m = re.match('ssh\+rsync://([^@:]+@[^/:]+)(:|)(.*)', target)
if m:
return not rsync_ssh_file(src, m.group(1) + ":" + m.group(3))
if m:
return not post_file(src, target)
log.alert("unsupported protocol: %s" % target)
if m:
return not post_file(src, target)
log.alert("unsupported protocol: %s" % target)