emuell / restic-browser

A GUI to browse and restore restic backup repositories.
MIT License
705 stars 22 forks source link

What is the pattern for SFTP? #128

Open omexlu opened 1 week ago

omexlu commented 1 week ago

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://USER@USER.your-storagebox.de//REPO even tried sftp://USER@USER.your-storagebox.de/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:USER@USER.your-storagebox.de:/REPO snapshots <-- This command works fine in commandline.

Am I doing something wrong here?

emuell commented 1 week ago

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.

USER@USER.your-storagebox.de:REPO
omexlu commented 1 week ago

Hi @emuell

I open Restic-Browser select " SFTP ", enter " USER@USER.your-storagebox.de: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 commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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.