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

**URL:** <https://kopia.discourse.group/t/connect-to-repository-using-a-script-how-to-pass-the-passwod/392>\
**Category:** Support\
**Created:** [April 21, 2021, 1:34pm UTC](https://kopia.discourse.group/t/connect-to-repository-using-a-script-how-to-pass-the-passwod/392 "2021-04-21T13:34:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fab](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/fab/32/81_2.png) [@Fab](https://kopia.discourse.group/u/Fab)\
**Post date:** [April 21, 2021, 1:34pm UTC](https://kopia.discourse.group/t/connect-to-repository-using-a-script-how-to-pass-the-passwod/392/1 "2021-04-21T13:34:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jkowalski](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/jkowalski/32/3_2.png) [@jkowalski](https://kopia.discourse.group/u/jkowalski)\
**Post date:** [April 21, 2021, 2:07pm UTC](https://kopia.discourse.group/t/connect-to-repository-using-a-script-how-to-pass-the-passwod/392/2 "2021-04-21T14:07:01Z")

</div>

`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.)
