Question #96168 on NSsbackup changed: https://answers.launchpad.net/nssbackup/+question/96168
Anton posted a new comment: Oumar Aziz OUATTARA wrote: > Question #96168 on NSsbackup changed: > https://answers.launchpad.net/nssbackup/+question/96168 > > Oumar Aziz OUATTARA proposed the following answer: >>> Regarding your question, the problem comes from the fact that the SSH URL >>> in NSsbackup is not using the same format as in Sbackup. >>> In NSsbackup, the definition of the schemas is delegated to each plugin. >>> The schema for SSH is: >>> ssh://user:passw...@server/my/folder/path/ >> That seems very close to what I'm using in sbackup (anonimized version >> shown): >> >> ssh://[email protected]/home/uname/xd/backup_note-uname >> >> Except for the fact that I do include my verbatim password in the url, >> since that is stored in plain text in (ns)sbackup's config file. I have >> in stead set up passkeys for secure login without password (which works >> flawlessly with plain ssh/scp/sftp etc., and with sbackup). >> >> Is this what nsbackup cannot handle? > > yes, you go it right ! > Here is the Regex that NSsbackups SSH plugin uses: > > "^(ssh://)([^:]+?:[...@]+?)@([^/^:^...@]+?)/(.*)" > > look at the matchScheme method here: > http://bazaar.launchpad.net/~nssbackup-dev/nssbackup/0.2/annotate/head%3A/src/nssbackup/plugins/sshFuseFAM.py > > So not putting a password is not an option :-( . > >> I don't think that is desired >> behaviour, for the reason mentioned above. I propose adding an >> additional schema (or modifying the existing one; I don't know how this >> works in detail) to accept 'ssh://u...@server/my/folder/path/'. >> (Where) Can I start fixing this? > > You can get the code using this page: > https://code.edge.launchpad.net/~nssbackup-dev/nssbackup/0.2 > > but the real problem here is not changing the Regex, but to use > pexpect correctly. If you know another api that can allow us to use > fuse, we might change for that one. No, I don't know. Can't we handle this with pexpect in some way? -- Groetjes, Anton _____________ _______________________________________________________ | | | | _ _ ___,| K. Anton Feenstra | | / \ / \'| | | IBIVU/Bioinformatics - Free University Amsterdam | |( | )| | | De Boelelaan 1083A - 1081 HV Amsterdam - Netherlands | | \_/ \_/ | | | Tel +31 20 59 87783 - Fax +31 20 59 87653 - Room P136 | | | [email protected] - www.few.vu.nl/~feenstra/ | | | "We're Gonna Hit You Harder" (Scoter) | |_____________|_______________________________________________________| You received this question notification because you are a member of NSsbackup team, which is an answer contact for NSsbackup. _______________________________________________ Mailing list: https://launchpad.net/~nssbackup-team Post to : [email protected] Unsubscribe : https://launchpad.net/~nssbackup-team More help : https://help.launchpad.net/ListHelp

