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

Add commandline support

Open KamikazeePL opened this issue 3 years ago • 1 comments

Could add command line support? To start restic-browser with repository address, password from batch file.

KamikazeePL avatar Oct 29 '22 15:10 KamikazeePL

Right now it will pick up existing restic env variables and use them as initial config: Try setting RESTIC_REPOSITORY and RESTIC_PASSWORD, then start restic from than env. AWS_ACCESS_KEY_ID, B2_ACCOUNT_ID are also supported.

This probably is a bit unexpected for a GUI app, so allowing to explicitly setting/passing them may not hurt.

emuell avatar Nov 06 '22 17:11 emuell

@emuell It seems like restic-browser does not support some of the environment variables

set RESTIC_REPOSITORY_FILE=resticRepository

When setting them backup works flawlessly, but restic-browser tells no repository selected. The password is already filled, so set RESTIC_PASSWORD_FILE=resticPW seems to work. When then entering the repository manually there is an error Failed to open repository: Fatal: Options -r and --repository-file are mutually exclusive, please specify only one

JsBergbau avatar Sep 08 '23 08:09 JsBergbau

Support for RESTIC_REPOSITORY_FILE has been added here: https://github.com/emuell/restic-browser/commit/906f68705bb058f80da166bf81c2156895f4be04

But it's not released yet. You could try using the gitlab builds from here until it is: https://github.com/emuell/restic-browser/actions

emuell avatar Sep 08 '23 08:09 emuell

... and a bunch of other args have been added here: https://github.com/emuell/restic-browser/pull/81

emuell avatar Oct 28 '23 15:10 emuell