Closed tomaszduda23 closed 5 months ago
Syncthing's command-line arguments or environment variables allow to configure config and database directory paths, i.e.
--config
/STCONFDIR
and --data
/STDATADIR
separately,--home
/STHOMEDIR
for a common configuration and database ("state") directory. See the official documentation for details about these directories.This add-on already sets --home=/data/config
. IMHO it would be better to keep config and database/state separated, but that's a different discussion.
However, by setting --home=/data/config
(which maps to /mnt/data/supervisor/addons/data/243ffc37_syncthing/config/
in the HA host) the add-on already stores both config and database/state to persistent storage by default (at least since v1.16.1).
I think what you're looking for is the default folder path configuration option (folder paths ≠ database/state path). It can be set either via
syncthing cli config defaults folder path set /PATH/TO/WHEREVER
Which addon? syncthing
Is your feature request related to a problem? Please describe. If container is restarted default data are lost. It is easy to miss during configuration.
Describe the solution you'd like It would be nice if default folder would be placed inside addon's persistent date. It could be done by setting
HOME
env vaialb.eAdditional context
You could also set STNODEFAULTFOLDER to prevent creating default sync directory.
My example config looked like this.