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
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 ?
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 ?
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:
- Open “Environment Variables”
- New “System Variables”
- Variable name = KOPIA_CACHE_DIRECTORY
- Value name = c:\kopia\cache
- 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.