emuell / restic-browser

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

[Guide] [HOWTO] [Windows] start Restic-browser with selected repository #76

Open KamikazeePL opened 1 year ago

KamikazeePL commented 1 year ago

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.

AxelPetermann commented 11 months ago

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.

emuell commented 11 months ago

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

ScottyDoesKnow commented 11 months ago

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.