Backup config of docker

good day,

I installed the docker version of hass.

at first the config was located in the container. this makes it hard to edit (since there is only vi availible)
and almost impossible to backup.
so i moved the /config directory to a mount point on the host machine.
During this change the docker container was changed so it decided to pull the latest version.

When i started the container it showed me the welcome wizzard.
when i completed the wizzard there were some parts restored (the stuff i manualy added to config.yaml) but other parts where lost. (the dashboards, other users, gui added parts)

so clearly the config directory isn’t the full config.
what other folders do i need to place outside the container?

What is the docker run command that you used to create the container?

You should have created a volume binding in there for the location of your config directory.

Here is mine:

docker run -d --name="home-assistant" --restart=unless-stopped -v /home/finity/docker/hass-config:/config -v /etc/localtime:/etc/localtime:ro -v /home/finity/docker/sshkey/.ssh:/root/.ssh -v /var/run/docker.sock:/var/run/docker.sock --device /dev/zigbee:/dev/zigbee --device /dev/ttyUSB-ZStick-5G:/dev/ttyUSB-ZStick-5G  --net=host --cap-add SYS_PTRACE homeassistant/home-assistant

hey,
Thanks for the response.
i use portainer since the only reason i use docker is homeassistant.
so i don’t have an commandline.
i have all commandline options availible so if i need to query something with a docker command that would be fine.

but from your commandline i see that you do the same.
redirect the /config folder to a folder on the local host.
the part with the time isn’t in my config. but i don’t have issue’s with the time. so guess that will be ok.
also the devices are not needed (yet).
network is also changed to macvlan
i don’t understand “cap-add” is it relevant for me?

Thanks
Mark

I’m guessing either a permissions issue that’s preventing the docker from accessing some files within the mapped config folder on the host, or the .storage folder was not copied over. The .storage folder contains the system configuration as well as configurations of integrations setup from the front end.

Yes. It is.
Either you didn’t copy everything or permissions error

hey, that was the solution.
there was no hidden folder in the backup.
i checked the .storage folder and that contain all the “lost” parts.
changed the backup to include hidden files :wink: