Moving Configuation Files

I’m running home assistant on MacOS using Docker using this command to start it:

docker run --init -d --name="home-assistant" -e "TZ=America/Los_Angeles" -v ~/.config:/config -p 8123:8123 homeassistant/home-assistant:stable

The result is that all the config files are in the base .config directory. I want them to be in a sub-directory called homeassistant. Can I stop the server, move the files to the directory, change the docker command to point to it and restart? I’m pretty sure that should work, but wanted to verify just in case it might trash the files

Yes, you can.

You should of course be automatically taking regular backups - if not now would be a good time :wink:

It did work, just remember to move the hidden files and do a backup beforehand.