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

HOWTO: Start Restic-browser with selected repository on Windows

Open KamikazeePL opened this issue 2 years ago • 3 comments

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.

KamikazeePL avatar Oct 02 '23 20:10 KamikazeePL

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.

AxelPetermann avatar Oct 17 '23 16:10 AxelPetermann

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

emuell avatar Oct 19 '23 14:10 emuell

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.

ScottyDoesKnow avatar Oct 31 '23 02:10 ScottyDoesKnow