Hi,
I have read this discussion and I do have a follow-up question. What path do I have to copy the config-folder to? Only the config-folder or other folders as well?
I am not sure, what folder is acutally used by Docker.
- my compose.yaml for HomeAssistant is in this directory: /home/uadmin/Docker/HomeAssistant/
- The actual data seems to be in this folder: /var/lib/docker/volumes/homeassistant_HomeAssistent_config/_data
My compose.yaml:
# version: as of 23.12.2022: https://docs.docker.com/compose/compose-file/
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- HomeAssistent_config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
# privileged: true
networks:
macvlan30:
ipv4_address: 192.168.30.20
# ports:
# Portal Access
# - "8123:8123"
# privileged: true
volumes:
HomeAssistent_config:
driver: local
# Network specifications
networks:
macvlan30:
external: true
Is this the folder, which I have to backup, if I don’t want to loose my container data?
root@ubuntu:/var/lib/docker/volumes# ls -la
total 108
drwx-----x 19 root root 4096 Dec 29 14:17 .
drwx--x--- 13 root root 4096 Dec 29 14:17 ..
drwx-----x 3 root root 4096 Dec 16 23:52 2eb36a3d36cc7cd56a5446f6a9a6250ada701e36c9f97b87d0abef7fe9f9b7e5
drwx-----x 3 root root 4096 Dec 23 16:25 368e86bfb2209e3c04a3bf1137dd98b6c06293e652cff2ef9670c840d3a705be
drwx-----x 3 root root 4096 Dec 20 21:55 3741223ee20d251ae9ab7a5c5f6150e29b6aa357f639f35fea074f14bb47f458
drwx-----x 3 root root 4096 Dec 23 10:31 4254b425a70d7ca5078ba04c2053e216dd96005e63f08f4981779c4f2b0f6b4f
drwx-----x 3 root root 4096 Dec 23 10:31 42794cef720cb008bdd2160ed32e871fb611b408e333865b2474fc0f2d6bf79f
drwx-----x 3 root root 4096 Dec 23 16:25 6077a2c92d3523875277fb45e42e3de85d2d7ada3db82dc1cfa0ff57ff498b74
drwx-----x 3 root root 4096 Dec 19 09:33 83899e56583413127aa0c0fb5257e6ef60318bffe9bcdab1295b764a579c04c7
drwx-----x 3 root root 4096 Dec 17 00:18 93d882dafa796c86457d1c7e731bc5dbf4f25ad11c95d3312e13844cac02f6f6
drwx-----x 3 root root 4096 Dec 20 21:20 ab3b720182ace4ff17a00015611a95b67cfad71a6769e4822734f46f411ed03d
drwx-----x 3 root root 4096 Dec 17 00:59 b0c1b5efa8c0f48c7226b88dca4793d0cf6951245750f3e9ad872d4da2dc8220
drwx-----x 3 root root 4096 Dec 17 00:45 b5b9e4de8211ce02f1acb4a966b28675af1a9c4be03813d14d866b191a1256af
brw------- 1 root root 253, 0 Dec 29 14:17 backingFsBlockDev
drwx-----x 3 root root 4096 Dec 19 10:00 bf5adf2f0890b46dffe8b84c89ae5a5686ca24134a310ba8df8fffbec0cd609b
drwx-----x 3 root root 4096 Dec 16 23:52 c7212bc446b7d467d04bcc836e824b69c10733ce451c669badfdec94cf419e05
drwx-----x 3 root root 4096 Dec 16 23:50 graylog_es_data
drwx-----x 3 root root 4096 Dec 16 23:50 graylog_graylog_journal
drwx-----x 3 root root 4096 Dec 16 23:50 graylog_mongo_data
drwx-----x 3 root root 4096 Dec 24 00:35 homeassistant_HomeAssistent_config
-rw------- 1 root root 65536 Dec 29 14:17 metadata.db
Could I choose another folder to persist the HomeAssistant-data? Does it make sense to do so?