Backup and restore between OS

Right now I have HA running as a docker container on Ubuntu

Can I make a backup then restore on another container running on Windows or Mac?

Trying to figure out if I should upgrade my current server

Posted Mar 30, 2022, 5:19 AM UTC

12
JeffResc•

Yes, a backup of a Docker container will work on any operating system, no problem with that.

In terms of a backup, all you would need is the /config directory in the Home Assistant docker container. You can get these files by bind mounting it to a directory on the host machine and accessing them that way, or you can use docker cp to copy the /config directory from the container to the host.

More about docker cp: https://docs.docker.com/engine/reference/commandline/cp/

5