HOWTO: Start Restic-browser with selected repository on Windows
Create batch file (*.bat) Change path to yours restic-browser.exe
@echo off
set RESTIC_REPOSITORY=rest:http://example.repository/repo
set RESTIC_PASSWORD=PasswordToRespoitory
start "" d:\Restic-Browser.exe (Path to Restic-Browser.exe)
This batch file will start Restic Browser and connect to selected restic repository.
Thanks for that hint.
Would it be also possible to set the path to restic.exe, because on my system it is not part of $PATH.
You could either change/update the PATH in the bat file, so Restic Browser can find it or use the new app argument:
start "" PATH_TO\Restic-Browser.exe --restic PATH_TO\restic.exe
Thanks for the tip. For Backblaze:
@echo off
set RESTIC_REPOSITORY=b2:<YourRepository>
set B2_ACCOUNT_ID=<YourAccountID>
set B2_ACCOUNT_KEY=<YourAccountKey>
set RESTIC_PASSWORD=<YourPassword>
start "" .\Restic-Browser.exe
No quotes on the account ID, account key, or password (don't know if that's a problem if there's a space in your password). And obviously change the start path if your .bat isn't in the same folder as the exe.