#Migrate from HA OS to Docker

11 messages · Page 1 of 1 (latest)

manic sorrel
#

So, I'm looking to migrate my existing Raspberry Pi running HA OS over to my Intel NUC Server on a Home Assistant Docker install. I followed the directions on an older video (https://www.youtube.com/watch?v=u8vOxg-SI74) to copy a tarball from my Raspi over to my NUC and copied those files over the config directory. Once I started up the container, though, it doesn't look like anything actually copied? None of my devices, integrations, or other configuration appears to be there. I feel like I'm probably missing something simple but I'm not sure exactly what. Any suggestions?

Looking to upgrade your Home Assistant Hardware but worried or unsure how to save all your existing configuration so you don't have to start again from scratch? Or perhaps disaster struck and you need to know how to restore your Home Assistant from a backup? In this video we look at both options for how to migrate any Home Assistant install to A...

▶ Play video
manic wren
manic sorrel
#

I use docker-compose. The NUC is already acting as a media server and had an existing docker setup.

homeassistant:
<<: *common-keys-core # See EXTENSION FIELDS at the top
container_name: homeassistant
networks:
npm_proxy:
ipv4_address: 192.168.89.207
image: "ghcr.io/home-assistant/home-assistant:stable"
restart: unless-stopped
volumes:
- $DOCKERDIR/appdata/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
ports:
- '8123:8123/tcp'

manic wren
manic sorrel
# manic wren And you're sure you copied your config in this folder on your host? ```$DOCKERDI...

DOCKERDIR="/home/coyler/docker"

coyler@media:~$ ls /home/coyler/docker/appdata/homeassistant
alerts.yaml custom_components ffmpeg-20220718-145242.log home-assistant.log.fault klipper.yaml scenes.yaml sensor.yaml zigbee.db
automations.yaml deps ffmpeg-20220718-145248.log home-assistant_v2.db node-red scripts.yaml tmp zigbee.db-shm
blueprints dwains-dashboard home-assistant.log home-assistant_v2.db-shm packages secrets.yaml tts zigbee.db-wal
configuration.yaml ffmpeg-20220718-144721.log home-assistant.log.1 home-assistant_v2.db-wal rtsp2webrtc_v5_aarch64 sensors.yaml www
coyler@media:~$

#

In fact, my automations are showing up, but none of my devices or integrations

manic wren
manic sorrel
#

Hmm. Let me check.

#

Yep, I missed some of the hidden directories. I'm re-tar'ing and copying again. I'll let you know if that was my issue (I bet it was)

manic sorrel
#

Yep, that was the issue. For the record I used the following to make the tarball that successfully restored on the new server:

cd /config
tar -cvpzf ha-backup.tgz .

#

Thanks for the help, @manic wren ! I knew I missed something stupid. 🙂