Backup SD-Card Hassio on Windows?

With my nightmare with the dark sky script corrupting hassio, just a question.

I tried taking my SD-Card out of the Pi and putting it in my computer thinking to use Win32DiskImage to create an image file in case… However, windows didn’t want to know about it. It was seeing the card in disk manager but I couldn’t assign a drive letter to it and thus win32 couldn’t even see it as a valid device. I was getting an RCP error when I tried to assign a drive letter. Also downloaded diskinternals free linux viewer and it saw the card but didn’t let me do anything with it either.

Your SD card is dead, RIP…

Actually it’s working fine no problems.

That’s very strange! The Hassio image on the SD card have 4 partitions and only one of them can be read in Windows… You should see and open at least one partition

Well I’d just like to backup the card to an image.

I feel your pain here. I want to bump up to 63, but the last upgrade was painful and I want to back up my entire card as well. I think this will do it, going to test it tonight on the SD card from my system.
Win32 Disk Imager

It won’t work if you are running Hassio.

Make a snapshot and then you have everything you need.

To setup a new system then, all you need do is image a new card with Hassio, install Samba, Copy the snapshot back into backup folder, restore snapshot and that’s it! everything is restored.

I thought that was the process, but it really let me down. I built a new card, put samba back and restored snapshot. Did not get any of the sub directories back. Also none of my addons came back. Since my config is split, it meant a lot of rebuilding since I was reliant upon snapshots.

I restored to a new card last week and everything was there. Addons included. Also my SSL certificate and authorized_hosts file so SSH in still worked with my private key. I did nothing except restore. I don’t understand why it failed for you.

The only thing I can figure is that the .1 version change killed me. But, I am not sure how to avoid that version change on a new install. I was really screwed, part of it was my fault for depending on snapshots and not having copies of the files outside of the snapshot. But, part of it was hassios fault for not restoring like it was intended to do.

With the structure on that sd card, I am afraid the only way to back it up would be with a docker vm that could understand the file structure… not something I have sitting around.

I have wondered if there is a way to do a “dd” copy of the card from the shell on the os, not likely.

It really makes me gun shy to do an update at this point. I am finally stable on .062.1

It’s pretty much a nightmare. You can see the partitions in “Mini Tool Partition Wizard” and also in “DiskInternals Linux Reader” both free and Diskinternals will let you download and read files but I don’t see any way you can backup and restore a partition at all. I think you’re stuck with snapshots. Maybe use a new card and try it and see. It worked for me last week.

Will do that before any upgrades at this point. The final kill was that the internal MQTT broker was failing in a big way. I have since gone to Mosquito and am running much better.

Now, it will not make a snapshot… 0.62.1, clean home-assistant.log file and the following in the supervisor logs:
I did restart hassio to see if that fixed it.


Supervisor Logs

18-02-12 22:22:21 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
18-02-12 22:22:21 INFO (MainThread) [hassio.addons.git] Pull addon https://github.com/notoriousbdg/hassio-addons repository
18-02-12 22:22:21 INFO (MainThread) [hassio.addons.git] Pull addon https://github.com/danimtb/dasshio repository
18-02-12 22:22:21 INFO (MainThread) [hassio.addons.git] Pull addon https://github.com/home-assistant/hassio-addons repository
18-02-12 22:22:21 INFO (MainThread) [hassio.addons.git] Pull addon https://github.com/hassio-addons/repository repository
18-02-12 22:22:22 INFO (MainThread) [hassio.addons] Load addons: 35 all - 0 new - 0 remove
18-02-13 00:02:18 INFO (MainThread) [hassio.snapshots] Full-Snapshot 6afe636b start
18-02-13 00:02:18 INFO (MainThread) [hassio.snapshots] Full-Snapshot 6afe636b run 9 addons
18-02-13 00:02:18 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_duckdns
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_check_config
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_configurator
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_rpc_shutdown
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_mosquitto
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon a0d7b954_terminal
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_samba
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_check_config
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_configurator
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_ssh
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_rpc_shutdown
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_samba
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_mosquitto
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon a0d7b954_terminal
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_ssh
18-02-13 00:02:19 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_duckdns
18-02-13 00:03:16 INFO (SyncWorker_2) [hassio.docker.addon] Export image 03d23610/armhf-addon-dasshio to /data/tmp/tmphshg6m2e/image.tar
18-02-13 00:03:38 INFO (MainThread) [hassio.snapshots] Found 2 snapshot files
18-02-13 00:03:53 INFO (MainThread) [hassio.snapshots] Found 2 snapshot files
18-02-13 00:03:56 INFO (MainThread) [hassio.snapshots] Found 2 snapshot files
18-02-13 00:04:37 ERROR (MainThread) [hassio.snapshots] It is already a snapshot/restore process running
18-02-13 00:04:48 ERROR (MainThread) [hassio.snapshots] It is already a snapshot/restore process running
18-02-13 00:05:23 INFO (MainThread) [hassio.api.proxy] /homeassistant/api/services access from core_configurator
18-02-13 00:05:23 INFO (MainThread) [hassio.api.proxy] /homeassistant/api/events access from core_configurator
18-02-13 00:05:23 INFO (MainThread) [hassio.api.proxy] /homeassistant/api/states access from core_configurator
18-02-13 00:05:40 ERROR (MainThread) [hassio.snapshots] It is already a snapshot/restore process running
18-02-13 00:05:46 ERROR (MainThread) [hassio.snapshots] It is already a snapshot/restore process running
18-02-13 00:11:25 ERROR (MainThread) [hassio.snapshots] It is already a snapshot/restore process running
18-02-13 00:30:47 ERROR (MainThread) [hassio.snapshots] It is already a snapshot/restore process running
18-02-13 00:48:03 WARNING (MainThread) [hassio.api.security] No valid Hass.io token for API access!
18-02-13 00:48:03 INFO (SyncWorker_19) [hassio.docker.interface] Restart homeassistant/raspberrypi2-homeassistant
18-02-13 00:50:36 INFO (MainThread) [hassio.homeassistant] Detect a running Home-Assistant instance
18-02-13 01:07:03 ERROR (MainThread) [hassio.snapshots] It is already a snapshot/restore process running
18-02-13 01:17:12 ERROR (MainThread) [hassio.snapshots] It is already a snapshot/restore process running

Fresh off a full reboot, home-assistant log still clean. Supervisor log output during attempted snapshot…

18-02-13 01:37:13 INFO (MainThread) [hassio.snapshots] Full-Snapshot b3545b93 start
18-02-13 01:37:13 INFO (MainThread) [hassio.snapshots] Full-Snapshot b3545b93 run 9 addons
18-02-13 01:37:13 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_duckdns
18-02-13 01:37:13 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_check_config
18-02-13 01:37:13 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_rpc_shutdown
18-02-13 01:37:13 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_configurator
18-02-13 01:37:14 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_samba
18-02-13 01:37:14 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_mosquitto
18-02-13 01:37:14 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon core_ssh
18-02-13 01:37:14 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_rpc_shutdown
18-02-13 01:37:14 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_check_config
18-02-13 01:37:14 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_configurator
18-02-13 01:37:14 INFO (MainThread) [hassio.addons.addon] Build snapshot for addon a0d7b954_terminal
18-02-13 01:37:14 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_samba
18-02-13 01:37:14 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_mosquitto
18-02-13 01:37:14 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_ssh
18-02-13 01:37:14 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon a0d7b954_terminal
18-02-13 01:37:14 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_duckdns
18-02-13 01:38:09 INFO (SyncWorker_6) [hassio.docker.addon] Export image 03d23610/armhf-addon-dasshio to /data/tmp/tmpilnzvxn8/image.tar

This didn’t work the last time I tried it… Very disappointing! I do back up my config files though, so it wasn’t a major problem.

The benefit of the snapshots are you won’t lost the add-ons and their configuration. I don’t know why this doesn’t work for some people as I found it worked brilliantly.

What’s the problem? Your logs don’t show any errors. Do you see the snapshot? Did you try restoring from it?

It took hours to generate the file, I am trying again. Maybe now I am getting full restore files. The last time I tried to use one it failed miserably. I am going to test one tonight.

Are they platform independent? I do not have a spare Pi2, but I have a Pi1 that I can install and test on.

So my snapshot took around 2.5 hours to complete and it is 77,210KB. I would assume that if it has all of the addons and a copy of the database it would be about that size. Although, it must be compressed since the database is about that big by itself.

I have never had a generated snapshot that large before.