restic-browser icon indicating copy to clipboard operation
restic-browser copied to clipboard

What is the pattern for SFTP?

Open omexlu opened this issue 1 year ago • 5 comments

Hi @emuell

I downloaded Restic Browser, works fine when it's local.

Now I want to access sftp, at the bottom it says fetching snapshots but nothing comes in, just loads.

sftp://[email protected]//REPO even tried sftp://[email protected]/REPO

It states: fetching snapshots but nothing happens.

PS. Used lastest scoop version (the same lastest as here). EDIT: Github Version makes no difference.

EDIT: Im sure i used the wrong pattern of sftp because even if i enter the false password i get " fetching snapshots ", something is wrong here. Its a Hetzner-Storagebox.

restic -r sftp:[email protected]:/REPO snapshots <-- This command works fine in commandline.

Am I doing something wrong here?

omexlu avatar Oct 24 '24 15:10 omexlu

How exactly do you pass the SFTP password to restic? Do you enter it interactively in the shell with restic? This won't work in Restic Browser, because there is no shell. You could either use ssh or rclone to avoid entering a password interactively.

Also note that the sftp path in Restic browser should be exactly the same as with the restic CLI, but without the sftp: prefix.

[email protected]:REPO

emuell avatar Oct 26 '24 08:10 emuell

Hi @emuell

I open Restic-Browser select " SFTP ", enter " [email protected]:REPO ", enter " Repo-Password ", click on " Okay ", after that it shows me on the left-bottom corner " Fetching snapshots" but nothing happends, it loads but nothing coming in, even after 10-15 min.

If i use the restic in command-line i need first to enter " SFTP-password " then i get a prompt to enter " Repo-password ".

Maybe i need to pass the SFTP-Password to in Restic-Browser but how?

Thanks in advance.

omexlu avatar Oct 26 '24 09:10 omexlu

Maybe i need to pass the SFTP-Password to in Restic-Browser but how?

There is no shell in Restic Browser to do that. But you can use rclone or set a ssh key for your storage box to avoid entering a password for the sftp connection.

I'll check if there's a way to generate a better error in restic browser to make that more clear.

emuell avatar Oct 26 '24 09:10 emuell

Thank you, after creating and uploading the ssh-key to the storagebox, restic-browser will automatically search for the key or anything needs to be configured in connection field or somewhere else in restic-browser?

omexlu avatar Oct 26 '24 09:10 omexlu

Yes, it should work just fine then. That's how I use it on Windows. It may be problematic on macOS.

If it does not, use rclone. That definitely will work.

emuell avatar Oct 26 '24 09:10 emuell