Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the pattern for SFTP? #128

Open
omexlu opened this issue Oct 24, 2024 · 5 comments
Open

What is the pattern for SFTP? #128

omexlu opened this issue Oct 24, 2024 · 5 comments

Comments

@omexlu
Copy link

omexlu commented Oct 24, 2024

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?

@emuell
Copy link
Owner

emuell commented Oct 26, 2024

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.

@omexlu
Copy link
Author

omexlu commented Oct 26, 2024

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.

@emuell
Copy link
Owner

emuell commented Oct 26, 2024

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.

@omexlu
Copy link
Author

omexlu commented Oct 26, 2024

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?

@emuell
Copy link
Owner

emuell commented Oct 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants