Page 1 of 1

Moving Domoticz from Rpi to Docker

Posted: Monday 27 May 2019 10:08
by maciekk
Hi,
I use Domoticz installed on my Rpi (Raspbian). Lastly I bought Dell nettop and installed there docker (Ubuntu server 16.04). I started Domoticz installed on docker. I'd like to move my domoticz installation (domoticz, influxdb, grafana, etc) from Rpi to new installation on docker.
I'm newbe in Linux environment - so anybody can help me with some instruction or tutorial how to do it? Is it enough to copy domoticz folder to new place in docker?

Thanks in advance for you help.


Mac

Re: Moving Domoticz from Rpi to Docker

Posted: Sunday 09 June 2019 11:43
by nmaster
Hi.

It depends what docker image you used.
I used docker image from linuxserver.io: https://hub.docker.com/r/linuxserver/domoticz

When you create docker container you must specify a -v parameter for a config path.
In this folder (let's say you specified /home/user/Config/domoticz) where user is a username, here is what you have in the folder.

domocookie.txt
domoticz.db
domoticz.db-shm
domoticz.db-wal
keys
ozwcache_0xc241b4d5.xml
OZW_Log.txt
plugins
scripts
zwcfg_0xc241b4d5.xml
zwscene.xml

In fact you have domoticz database, zwave log and conf if you have zwave on your home automation system, keys folder (for https), plugins and scripts folders where you copy plugins and scripts you actualy use.

Hope this will help.

Re: Moving Domoticz from Rpi to Docker

Posted: Monday 08 July 2019 12:53
by DAVIZINHO
this is very interesting.
but i have a question.
If i have a script sh thant runs in crontab every X minutes. In docker, how can i make it works?

thanks!