# Get Microsoft's Attention Over Windows Update Deleting Duplicati DB/Configs

**URL:** <https://forum.duplicati.com/t/get-microsofts-attention-over-windows-update-deleting-duplicati-db-configs/7651>\
**Category:** Support\
**Created:** [July 31, 2019, 12:02am UTC](https://forum.duplicati.com/t/get-microsofts-attention-over-windows-update-deleting-duplicati-db-configs/7651 "2019-07-31T00:02:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Doe](https://forum.duplicati.com/user_avatar/forum.duplicati.com/john_doe/32/2932_2.png) [@John\_Doe](https://forum.duplicati.com/u/John_Doe)\
**Post date:** [July 31, 2019, 12:02am UTC](https://forum.duplicati.com/t/get-microsofts-attention-over-windows-update-deleting-duplicati-db-configs/7651/1 "2019-07-31T00:02:15Z")

</div>

Using duplicati as a service, You may know that the DB and configuration are kept in C:\Windows\System32\config\systemprofile\AppData\Local.

With this directory being likely to contain user data, It should not be removed when windows update upgrades windows. However, users have had there Duplicati Data wiped by windows update because it is wiped in the upgrade process.

If you agree that this folder should not be messed with during an upgrade, Upvote this windows feedback post to get Microsofts attention over this problem.

[https://aka.ms/AA5r5sw](https://aka.ms/AA5r5sw)

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [July 31, 2019, 12:53am UTC](https://forum.duplicati.com/t/get-microsofts-attention-over-windows-update-deleting-duplicati-db-configs/7651/2 "2019-07-31T00:53:57Z")

</div>

Done. Thanks for that. Next, someone needs to lobby Synology to stop their [root-does-what-it-wants](https://forum.duplicati.com/t/synology-dsm-current-status-9-interrupted/7384/4) plan.

For now, people on such systems can workaround heavy-handed updating by keeping configs elsewhere.

[Migrating from User to Service install on Windows](https://forum.duplicati.com/t/migrating-from-user-to-service-install-on-windows/660) has some ideas but no clear agreement for code work.

---

<div class="post-metadata">

**Author:** ![Taomyn](https://forum.duplicati.com/user_avatar/forum.duplicati.com/taomyn/32/2665_2.png) [@Taomyn](https://forum.duplicati.com/u/Taomyn)\
**Post date:** [July 31, 2019, 6:31am UTC](https://forum.duplicati.com/t/get-microsofts-attention-over-windows-update-deleting-duplicati-db-configs/7651/3 "2019-07-31T06:31:20Z")

</div>

Nope, Duplicati should be using ProgramData not the system profile folder - then it’s a non-issue.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [July 31, 2019, 12:54pm UTC](https://forum.duplicati.com/t/get-microsofts-attention-over-windows-update-deleting-duplicati-db-configs/7651/4 "2019-07-31T12:54:17Z")

</div>

ProgramData is what I run, but using --portable-mode on the install has been [suggested](https://forum.duplicati.com/t/migrating-from-user-to-service-install-on-windows/660/14) (config is under Program Files, which some people see as wrong). Main drawback/advantage that I see in ProgramData relative to the profile for SYSTEM is that file permissions are more open – and database hold credentials. They’re obfuscated on Windows, but it’s mostly to thwart unsophisticated malware, e.g. string scanners.

[Tray Icon does not start after setting a UI password (Service Mode)](https://forum.duplicati.com/t/tray-icon-does-not-start-after-setting-a-ui-password-service-mode/4679) suggests an advantage of loosening access to the config. TrayIcon needs to use a lower-level HTTP interface to check server status, and its method of getting the password is to read the DB. But TrayIcon runs as users, so user might see things intended for some other user on multi-user system. Web UI has similar problem for a SYSTEM service.

There seemed at one time to be an idea of how to fix TrayIcon, but even now, ProgramData seems best. Would anyone care to check GitHub issues to see if it’s actually requested? Migration is also an issue…

[Duplicati creates large files in the roaming part of the user profile on Windows #2222](https://github.com/duplicati/duplicati/issues/2222) is linked from my first link, and there the --portable-mode suggester also [suggests](https://github.com/duplicati/duplicati/issues/2222#issuecomment-277647641) ProgramData. A big technical analysis follows.

To make things more complicated, a service doesn’t have to run as SYSTEM. It can run as some end user.

---

<div class="post-metadata">

**Author:** ![Taomyn](https://forum.duplicati.com/user_avatar/forum.duplicati.com/taomyn/32/2665_2.png) [@Taomyn](https://forum.duplicati.com/u/Taomyn)\
**Post date:** [July 31, 2019, 1:40pm UTC](https://forum.duplicati.com/t/get-microsofts-attention-over-windows-update-deleting-duplicati-db-configs/7651/5 "2019-07-31T13:40:53Z")

</div>

Anyway, this is my fix for the profile folder being wiped between major Windows updates:

`mklink /d C:\Windows\System32\config\systemprofile\AppData\Local\Duplicati %ProgramData%\Duplicati`

Every subsequent update I just re-run the command and file are back.

---

<div class="post-metadata">

**Author:** ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)\
**Post date:** [July 31, 2019, 2:39pm UTC](https://forum.duplicati.com/t/get-microsofts-attention-over-windows-update-deleting-duplicati-db-configs/7651/6 "2019-07-31T14:39:35Z")

</div>

If I had any time I’d do an update that, upon finding no settings, would check for old Windows folders and offer to move them over from there.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [July 31, 2019, 5:54pm UTC](https://forum.duplicati.com/t/get-microsofts-attention-over-windows-update-deleting-duplicati-db-configs/7651/7 "2019-07-31T17:54:31Z")

</div>

> [@Taomyn](#):
>
> Every subsequent update I just re-run the command and file are back.

The plan [here](https://forum.duplicati.com/t/cant-connect-to-dsm-started-duplicati-after-synology-6-2-update/3701/7) is the Synology-version workaround. I wish the OS vendors respected customer data.

> [@Can't connect to DSM started Duplicati after Synology 6.2 update](https://forum.duplicati.com/t/cant-connect-to-dsm-started-duplicati-after-synology-6-2-update/3701/7):
>
> > Updating DSM wiped all /root/.config/Duplicati
> 
> Yep, I noticed that with previous DSM updates. I ended up moving the Duplicati database and other stuff to /volume1, and then just creating a symlink in /root/.config. When a DSM update wipes out that folder I only have to recreate the symlink.

---

<div class="post-metadata">

**Author:** ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)\
**Post date:** [July 31, 2019, 11:07pm UTC](https://forum.duplicati.com/t/get-microsofts-attention-over-windows-update-deleting-duplicati-db-configs/7651/8 "2019-07-31T23:07:46Z")

</div>

> [@ts678](#):
>
> The plan [here](https://forum.duplicati.com/t/cant-connect-to-dsm-started-duplicati-after-synology-6-2-update/3701/7) is the Synology-version workaround. I wish the OS vendors respected customer data.

I researched this a while back and basically Synology does not support modifying the NAS as root, which includes placing files in /root.

I used to do the symlink thing as mentioned in the post, but now I use a different approach. I use Task Scheduler on the NAS to trigger an automatic start of Duplicati when the NAS boots/reboots. This lets me pass command line option so that Duplicati never tries using /root/.config at all.

Script looks like this:

```
#!/bin/sh

mono "/volume1/@appstore/Duplicati/Duplicati.Server.exe" --webservice-port=8200 --webservice-interface=any --server-datafolder=/volume1/_Duplicati --tempdir=/volume1/_Duplicati/tmp &

```

I’m actually going to probably switch to using Duplicati in a Docker container at some point and avoid this mess entirely!

For Duplicati on Windows, I’d recommend that if it detects it is running as LocalSystem it should just save in `C:\ProgramData\Duplicati` instead.
