I'm surprised nobody answered this. Apparently this community isn't as active as we'd hope. Given the still quite complex nature of Domoticz, I would have expected a lot more whiz-kids. Anyway...
You can easily alter the startup line for domoticz to point to a different file.
In the case of systemd, you'll find a line in the
domoticz.service file similar to this:
Code: Select all
ExecStart=/home/domoticz/domoticz/domoticz -www 8080 -sslwww 443 -dbase /home/domoticz/domoticz/domoticz.db
As you can see, the location of your database is just a little startup-option away. Given that it's part of the program, I imagine it's perfectly acceptable.
Important: Make certain the user that runs domoticz has read-write permission on the directory that holds the file. Otherwise, domoticz will boot, but you'll have lots of SQL errors.