Connect to repository using a script - how to pass the passwod?

Hello,

I would like to run kopia backups using scripts, on Windows, without human input. I don’t understand from the documentation how to pass the repository password on the “kopia.exe repository connect filesystem” command.

Is there a way to do it?

Thanks in advance.

KOPIA_PASSWORD environment variable can be used to provide password, but it’s usually only needed once. Once you connect to the repository on a machine, the password is stored in OS credential storage (keychain/keyring/etc.)

1 Like