# Kopia installation on Windows lost password repository

**URL:** <https://kopia.discourse.group/t/kopia-installation-on-windows-lost-password-repository/3294>\
**Category:** General Topics\
**Created:** [September 24, 2024, 12:38pm UTC](https://kopia.discourse.group/t/kopia-installation-on-windows-lost-password-repository/3294 "2024-09-24T12:38:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![igtztorrero](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/igtztorrero/32/813_2.png) [@igtztorrero](https://kopia.discourse.group/u/igtztorrero)\
**Post date:** [September 24, 2024, 12:38pm UTC](https://kopia.discourse.group/t/kopia-installation-on-windows-lost-password-repository/3294/1 "2024-09-24T12:38:24Z")

</div>

I configured kopia.exe on a Windows 2019 Server, and used Task Schedule to create a snapshot every day.

Everything has worked well for a year ago, every day at 10pm it runs the snapshot.

But suddenly in August, the process fails, after investigating I realize that the command now asks for repository password.

If I type the repository password, the process runs OK

```auto
C:\Program Files\Kopia>kopia snapshot create C:\MYDATAFOLDER
Enter password to open repository: *****
Snapshotting Administrator@winserver2019:C:\MYDATAFOLDER ...
 * 0 hashing, 543 hashed (1.1 GB), 38371 cached (4 GB), uploaded 212 B, estimated 5.1 GB (100.0%) 0s left
Created snapshot with root kc885fea62527602d62988674b43f3d2b and ID 9d78abfba8c2c53875c713269bdf697e in 5s

```

**NOTE:** The strange thing here is that the same thing happened to **15 different servers** ( every server using a different repository )

It’s looks like a Windows Update, erase the password.

Can kopia save the repository password again ?

---

<div class="post-metadata">

**Author:** ![igtztorrero](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/igtztorrero/32/813_2.png) [@igtztorrero](https://kopia.discourse.group/u/igtztorrero)\
**Post date:** [September 24, 2024, 1:13pm UTC](https://kopia.discourse.group/t/kopia-installation-on-windows-lost-password-repository/3294/2 "2024-09-24T13:13:16Z")

</div>

```auto
C:\Program Files\Kopia>kopia repository change-password
Enter password to open repository:

Enter new password:
Re-enter password for verification:
deleting C:\Users\Administrador\AppData\Local\kopia\7a855cd2ed005119\kopia.repository
deleting C:\Users\Administrador\AppData\Local\kopia\7a855cd2ed005119\kopia.blobcfg
NOTE: Repository password has been changed.

```

Solved, but intrigued why the password was lost and if it going to fail in the future ?

---

<div class="post-metadata">

**Author:** ![guru-meditation](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/guru-meditation/32/990_2.png) [@guru-meditation](https://kopia.discourse.group/u/guru-meditation)\
**Post date:** [September 24, 2024, 3:21pm UTC](https://kopia.discourse.group/t/kopia-installation-on-windows-lost-password-repository/3294/3 "2024-09-24T15:21:18Z")

</div>

I have the same environment and also use the task scheduler.  
So that I have a better and faster overview, I changed the default cache directory, described here:

> **[Caching](https://kopia.io/docs/advanced/caching/)**
>
> Fast and Secure Open-Source Backup Software for Windows, Mac, and Linux

1. Open “Environment Variables”
2. New “System Variables”
3. Variable name = KOPIA\_CACHE\_DIRECTORY
4. Value name = c:\kopia\cache
5. OK

(Or on CMD with "setx KOPIA\_CACHE\_DIRECTORY “c:\kopia\cache /m”)

In my case kopia.blobcfg and kopia.repository are also saved in cache folder.  
(It seems that a older version of both files is also saved in the repo).

I also did this with KOPIA\_CONFIG\_PATH for repository.config file. Still not tested KOPIA\_LOG\_PATH.
