Berimor66 / duplicati

Automatically exported from code.google.com/p/duplicati
0 stars 0 forks source link

URI parser should provide better error messages for unsupported protocols #743

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There are a few supported protocols like 

file://
ssh://
ftp://

which need to be specified in the target URI. MAny people seem to forget about 
file:// when they create local backups. In that case the parser should say: 
Target URI is missing a protocol. Backups to local destinations require file:// 
as protocol.

This makes parsing much easier as we can parse the target URI simply like:

if file:// then ...
elseif ssh:// then ...
elseif ftp:// then ...
else showError()

Original issue reported on code.google.com by rst...@gmail.com on 3 Nov 2012 at 2:38