# Synchthing auto-update and config folder

**URL:** <https://dietpi.com/forum/t/synchthing-auto-update-and-config-folder/6384>\
**Category:** General Discussion\
**Created:** [1 March 2022 09:28 UTC](https://dietpi.com/forum/t/synchthing-auto-update-and-config-folder/6384 "2022-03-01T09:28:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alessandro.psrt](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@alessandro.psrt](https://dietpi.com/forum/u/alessandro.psrt)\
**Post date:** [1 March 2022 09:28 UTC](https://dietpi.com/forum/t/synchthing-auto-update-and-config-folder/6384/1 "2022-03-01T09:28:25Z")

</div>

It seems that using the installation of syncthing via dietpi-software it create the configuration directory in /mnt/dietpi\_userdata/syncthing/ but if the automatic updates integrated in syncthing are active the configuration is restored to its default directory /home/USER/.config/syncthing/ at first update. Maybe also with apt update?  
This could lead to long-term data loss if you don’t notice the problem right away.  
Stopping syncthing and moving /mnt/dietpi\_userdata/syncthing/ to /home/USER/.config/ solve the issue, restoring shared folders and connected devices saving the user from troubles and reconfiguration.

It is certainly not a bug related to DietPi but you could move the default configuration directory set by dietpi-software or inform users from the syncthing wiki in [https://dietpi.com/docs/software/cloud/#syncthing](https://dietpi.com/docs/software/cloud/#syncthing)?

Thanks for your work.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [2 March 2022 21:46 UTC](https://dietpi.com/forum/t/synchthing-auto-update-and-config-folder/6384/2 "2022-03-02T21:46:49Z")

</div>

usually we define the home directory s part of the service file configuration. Can you check how your service file looks like

```nohighlight
systemctl cat syncthing

```
