I’m trying to set up restic to automatically input the password for my repos when I run my script so that I don’t have to manually interfere with the process at any point.
It depends a little bit on the language your script is written in.
If bash, simply set them in the script via export. If another language, then you’ll need to use a different syntax; the first solution you linked was for powershell.
Either way, they’re just regular environment variables, nothing specific to restic. That’s why the restic docs don’t really explain how to set them.
Environment variables are something that is a basic feature of operating systems and hence not something we can elaborate on the basics of in the restic manual. You can check Environment variable - Wikipedia for more information.
My logic was that I don’t want anyone to be able to automatically access all of my files on my machine, but I guess if they can access my machine it’s already over as far as that goes.
I understand. I consulted you because I asked a similar question before and also here they answered that if a user or someone already has access or the computer with the data, the other security measures would be secondary (minus cloud or offline backup) which makes sense.