I’d like to change the location of Syncthing’s configuration file. There are a couple of questions about this on the forum, but the only direct answer is a terse “syncthing -home /new/directory” without enough information for me to tell exactly what that does.
In trying to deduce it based on what’s in the documentation, I presume there must be some place under the hood where Syncthing records where to look for its database and config file. So, if I want to change those, do I
- Run
$ syncthing -home /new/directoryonce as a configuration command to tell Syncthing to edit what’s under the hood to record the new location of its config & data directory, or - Run
$ syncthing -home /new/directoryevery time I issue a Syncthing command, now and forever into the future?
In the case of 2), I’m guessing that Syncthing has the default locations for its config & data directory hard-coded, and that those can’t be changed in general.
In conceptual terms, my question is, is syncthing -home /new/directory a “start the server, but with special parameters” command, or is it a “alter the internal state without doing anything to the server” command?