emuell / restic-browser

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

How to pass restic command line options (e.g. sftp.args) #99

Closed causalmask closed 3 months ago

causalmask commented 3 months ago

Is there a way to pass restic command line options when opening a repository? I specifically need to pass -o "sftp.args=-i /path/to/private_key" when accessing an sftp repo.

emuell commented 3 months ago

That's currently not possible, but maybe you could connect via rclone then instead?

causalmask commented 3 months ago

Thanks for the suggestion.

I had been passing those sftp.args to restic before I started using restic-browser, but I just realized I could also add the appropriate ssh config values to the ~/.ssh/config (inside the container I'm running) and that would work the same.