No batch file as of yet. I’m not even past initializing the repo in the first place lol
I’ve just tried export B2_ACCOUNT_ID=“myid” and got an error saying that was a bad command. Since the “export” command doesn’t seem to work, I thought SET would do the trick and did SET B2_ACCOUNT_ID=“myid”. But after restic -r b2:bucket:test init I got “Fatal: unable to open B2 backend: Key ($B2_ACCOUNT_KEY) is empty.” So then I tried SET $B2_ACCOUNT_ID=“myid” and then I tried it without quotes around the ID. Then I googled and searched the forums and eventually posted here.
So, in short… I tried:
And after all of that, I tried restic -r b2:bucket:test init and got:
Fatal: unable to open B2 backend: Key ($B2_ACCOUNT_KEY) is empty.
I also tried going to Advanced System Settings > Advanced > Environment Variables and putting them in both the User and System variables, but received the same error.
Really, if anyone could just walk me through initializing a repo on Windows for the first time, that’d probably be enough to get me going. I don’t know what I’m doing wrong. It’s got to be something dumb I’m overlooking (or I’m just plain doing it wrong). I wish I could just use a config file or pass all of this through the command line as switches (if I can, I don’t know how). It’s the “export” bit that’s messing me up. I don’t know what the Windows equivalent is.