HOW TO - Migrate Home Assistant (SD CARD TO SSD)

Поділитися
Вставка
  • Опубліковано 30 чер 2024
  • In this video we are going to be migrating (moving) our existing active Home Assistant installation running on an SD card. Over to a clean install on an SSD. To do this we will be using the default full snapshot.
    In the video we migrate a 32 bit version of Home Assistant running on a Raspberry Pi 4 (4GB) over to a 64bit version of Home Assistant running
    on a Raspberry Pi 4 (8GB). The migration process will take a few minutes. Mine took roughly 15 minutes.
    After the restore I had a couple of small issues which I point out and fix.
    Once completed your Home Assistant should be a duplicate of your original setup and be ready to go.
    Can you notice a speed difference between the SD card and SSD?
    Any issues? Head over to my Facebook page and star up or join an existing post : / markwatttech
    Hopefully we can all work together to resolve any common problems.
    If you are trying this process on another device, let me and others know how you got on in the description below. In the future I will also be creating something similar using other bits of Hardware.
    Looking for how to get started with your installation? Check out my guides at : • Home Assistant Install...
    If this video has helped you out, drop me a like rating and subscribe for more.
    ▬ Video Chapters ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    0:00 - Intro
    0:16 - Migration Info
    1:03 - Getting started
    1:20 - Creating a Full Snapshot
    5:05 - Restore Snapshot (Clean installation of HA)
    5:49 - Waiting...
    6:26 - Home Assistant Restored
    7:56 - Issues following restore
    8:34 - History (Database) Quick fix
    10:29 - deCONZ / Conbee II issue
    11:01 - Another way to do a restore
    12:01 - Recap restore process
    12:43 - Outro
    ------------------------------
    Subscribe To See More ! ● Click here ► ua-cam.com/channels/QRm.html
    ▬ Products used in this Video ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Links to Products used in this video. Please note these are Amazon affiliate links. I may get a small commission from these links which will help the channel.
    Raspberry Pi 4b 4GB : amzn.to/2X9myT4
    Raspberry Pi 4b 8GB : amzn.to/3hIjVAW
    SanDisk Extreme A2 64GB : amzn.to/3nkVudX
    Pi4 Official USB C Power Supply : amzn.to/3oguNsd
    Kingston SSD : amzn.to/3q2PCb7
    Startech Sata to Usb3 : amzn.to/3bDXn1E
    ------------------------------
    🙏Support my Channel - Become a PATRON🙏
    Consider supporting the channel by becoming a Patron. Any and all funds go into creating new content and bigger projects.
    ► / markwatttech
    ------------------------------------------------------------------------------------------------
    📣FOLLOW ME ON SOCIAL MEDIA📣
    Follow me on all of the places for exclusive insights and updates;
    👤 Facebook: / markwatttech​​​
    👤 FB Group: / 2963936147172102
    📸 Instagram: / markwatttech​​​
    🐦 Twitter: / markwatttech​​​
    ► MarkWattTech Sub Reddit : / markwatttech
    ▬ Buy Me a Coffee ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ☕ Found my content helpful?
    Any and all funds will go towards helping improve future content.
    Plus there are an extra few perks to becoming a member.
    ☕ If your interested check it out :
    ► Buy Me a Coffee: www.buymeacoffee.com/MarkWatt...
    ------------------------------
    🎵 Track Info:
    Title: All That
    Royalty free from : www.bensound.com/royalty-free​​
    ------------------------------
    #markwatttech​​ #homeassistant​​ #smarthome
  • Наука та технологія

КОМЕНТАРІ • 68

  • @ChrisCraft184
    @ChrisCraft184 3 роки тому +2

    I did it! It took me a while and I often referred to your SSD install video, but it works now! I officially decommissioned the SD card and am running my Pi4 on just the SSD for a few days now and it's perfect. Thank you so much!

  • @mackflix
    @mackflix 3 роки тому +4

    Thanks for the Hand-Holding, it's great for Us that just lack that bit of confidence to tackle this stuff on our own. Your channel is making a difference, keep it up!

    • @MarkWattTech
      @MarkWattTech  3 роки тому +1

      Thank you! Glad to have helped. Plenty more to come 😁

  • @bowentz
    @bowentz 3 роки тому +1

    Just what I was waiting on... Thanks!!

  • @tiagosaavedra439
    @tiagosaavedra439 3 роки тому +1

    Guys a little tip, this got me fighting for 3 hours, I was loosing access to my HA everytime I try to restore. Im using fixed IP and duckdns. Everytime the upload started i loose the connection and never got back to my HA (waited more than 1h, im starting now it was about 15mb backup) without flash everything again so:
    - make the normal account when you log in for the first tim
    - install samba or ftp addon,
    - upload the snapshot to the backup folder then do the restore
    Took me 2 min restoring everything. My guess is during the upload from the computer to the RaspberryPi the coonection was lost and leave the configuration at the middle
    (noob tips, sorry for my english )
    Keep on the great work Mark

  • @rbolden
    @rbolden 3 роки тому

    Thanks Mark, greeting from Australia. Worked like a treat.

  • @davebareham1075
    @davebareham1075 3 роки тому

    Great video Mark (and great channel)

  • @craigw4644
    @craigw4644 3 роки тому +1

    Found it, nice to watch versus trial and error.

  • @botialoach1
    @botialoach1 8 місяців тому

    Excellent video thank you the recap was really helpful

  • @Bertjegassel1
    @Bertjegassel1 3 роки тому +1

    Cheers Mark for your great work. One question: is it mandatory to put the deconz stick in the same USB port as before, to be recognized after the fresh install?

  • @brinsleymanzi4437
    @brinsleymanzi4437 3 роки тому +5

    You make no mention of the boot loader.....does this now work on an Rpi4 without an SD card inserted and just a USB SSD

    • @MarkWattTech
      @MarkWattTech  3 роки тому +3

      Hey Brinsley. You can now boot directly from an SSD with no SD card (if that's what you mean). I have covered this in a couple of installation videos on my channel. This is booting directly from the SSD and not using the datactl move method. I may create a video showing the SSD setup using the datctl method if enough people where interested. Cheers.

  • @kristianwind2755
    @kristianwind2755 3 роки тому +2

    Hello Mark - and thank you for these videos!
    I have a Pi4 with SD card running with 110+ Zigbee devices on a CC2531 stick. I have tried moving to an UDOO with with Win10 and VirtualBox before but didn't seem to work for me as the devices were not updated or reconfigured. Perhaps I was not patient enough... Could be I should be looking into the SSD upgrade of the Pi instead.
    Have you any advice? Should I move the CC2531 to the new host or can I use my spare (don't know if the devices are store on the USB stick or in HA).

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      Hey Kristian. The hardware is entirely up to you. The Pi is a great place to start and you can always switch up once you outgrow the Pi. Im currently running my setup on a Pi with an SSD and am more than happy with it.
      As far as I am aware, The Zigbee configs are all stored with HA so you should be able to just move or restore that config and have now worry with moving the USB between.
      Hope that makes sense.
      Cheers.

  • @EyalOren
    @EyalOren 3 роки тому +1

    Might have missed it but you mentioned a process for automating snapshot creation. Is there a video for that?

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      I do have an upcoming video for it :)

  • @dejanvirijant3970
    @dejanvirijant3970 3 роки тому +1

    Just a note - if you have Pi close to your wifi router or zigbee stick plugged directly into Pi you (as have i) might have some troubles with interferences. I found out that SSD over USB 3.0 is "emitting" some kind of signal on 2.4 GHz so using extending cable for zigbee stick and eventually moving Pi away from router fixed the connectivity problem. Hope it helps :)

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      Great tip. I forgot to mention this. I actually have a Conbee II attached via a usb 3.0 extension cable directing it away from the Pi.

    • @bergmannlights5149
      @bergmannlights5149 3 роки тому

      @@MarkWattTech how far away does the stick need to be from the SSD? Also could this impact zwave signals as well?

  • @wizake
    @wizake 3 роки тому +1

    One thing that drove me crazy for about 4h was MariaDB which got corrupted during the migration. Upon restoring the snapshot, the recorder and logbook were not working. I had lost all my history data. I could get HA back online if I uninstalled and reinstalled mariaDB addon.
    The secret is to stop the addon prior to creating the snapshot. Worked like a charm in the end, and I only lost those 4h.

  • @MrNrbarker
    @MrNrbarker 3 роки тому

    So have I (as a newly) missed something here? I watched the videos on quick and easy installs of HA on an ssd. They use Pi Imager which is limited to the 32 bit Pi. I was hoping to install the 64 bit versions of Pi and HA. This video (please excuse a beginner) seems to pick from when Pi os 64 is already on the ssd.
    How did you get Pi 64 onto the ssd? I have Pi 64 with ha 64 running on my ssd card fine.

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      Hi Neil.
      In this video example I am taking a working Home Assistant instance on an SD card. The SD card image is running a 32bit version of Home Assistant. I then make a snapshot of this instance.
      (You can use the Pi Imager for 64 bit installs too)
      If you do a clean install of a 64bit Home Assistant onto an SSD you can then import your previous Home Assistant snapshot (In this demo case the 32bit Snapshot). So you can move from 32bit to 64bit.
      Hope that makes sense?

    • @MrNrbarker
      @MrNrbarker 3 роки тому +1

      @@MarkWattTech Thanks Mark. Makes sense with a few other things I read.

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      @@MrNrbarker no worries. Any issues give me a shout :D

    • @MrNrbarker
      @MrNrbarker 3 роки тому

      @@MarkWattTech Thanks. I’m reading and watching lots on this. I expect I can easily follow your instructions to copy the snapshot. I have read though www.tomshardware.com/how-to/boot-raspberry-pi-4-usb
      But to add HA you need the lite version so I have discovered. So I am still stuck on how to create a clean 64 bit HA install on an ssd. Your latest video picks up from this point. But how do I make that clean 64 bit install from scratch (ie blank ssd and ssd) on an ssd that will boot. I have a Pi 4 2G and a 120G Wd Ssd.
      It’s 12:30am here in Brisbane. Time for a nap. Ps. I really appreciate your help.

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      @@MrNrbarkerNo problem :) Enjoy your nap. In my install video (If you haven't seen it) I do show how to install HA on a blank disk.
      Have a look at : ua-cam.com/video/WDCE4_sP5_E/v-deo.html
      That specific timestamp shows the flashing of a 64bit image to an SSD and the rest of the steps you will need to do.
      This is just a clean install. Let me know if that helps.

  • @MaxGoddur
    @MaxGoddur 3 роки тому

    Great video. I am a bit challenged when it comes to tech but getting better. I know how to get a fresh image installed onto the Micro SD card but not sure I followed how you install it onto the SSD Drive. Can you please elaborate?

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      Thanks :) sure happy to help. So are you just trying to do a clean install on the SSD?

    • @MaxGoddur
      @MaxGoddur 3 роки тому +1

      @@MarkWattTech yes would like to move away from MicroSD card and start fresh with SSD drive. Do you have a video for such a change? I don't have a lot of stuff I want to carry over, in fact, looking forward to redoing it as it should help to solidify into memory the steps to get to that point. Thank you in advance. Do you have a coffee fund?(never mind found it)

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      @@MaxGoddur no worries. I have a link in the description to my installation playlist. In the playlist there are 2 videos (Quick and Easy) which are both installation videos for clean SSD setups. Also link for my coffee in the description if you want that too :)
      Give me a shout if you need a hand.

  • @adrianfarrell4072
    @adrianfarrell4072 2 роки тому

    Hi, followed this and the various online guides and it didnt work for me, once the restore was done it lost too many of my customisations (most annoying was the network settings)
    My simple view of it worked, i used Etcher to 'Clone' the SD card to my SSD and simply booted from the SSD (Raspberry pi 4 native boot), worked like a charm with the only gripe was it stating that it had been turned off for several hours while i figured it out

  • @kraddoomsters
    @kraddoomsters 3 роки тому

    I was just thinking about doing this. Does the full snapshot backups conbee/deconz stuff too?

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      Hey! I have an updated version of this that will be live in about half an hour if your interested :)
      But yes! Conbee/deConz is all backed up.
      Cheers

    • @kraddoomsters
      @kraddoomsters 3 роки тому

      @@MarkWattTech I'll have a look. Is there any point of having an 8gb rpi4 over a 4gb one since HA is gonna be installed on a ssd?

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      @@kraddoomsters if you plan on having a lot of add-ons etc then yes. If its just light automation etc 4GB is plenty. The beauty if HA is that its so scalable. If you start with 4 then want or need extra grunt you can just upgrade :)
      Then you can use that 4GB pi in another HA project 😆

  • @MrBobWareham
    @MrBobWareham 3 роки тому

    I know this sounds stupid but did you do all this from the shortcut on your computer as that is how I run my HA from my raspberry pi 3 I log in from my laptop and can I change over to an SSD on my raspberry pi 3? And is the Kinstone the best drive to use? thanks, Bob in the UK

    • @MarkWattTech
      @MarkWattTech  3 роки тому +1

      Hey Bob. Do you mean did I do it all remotely? (if so then yes - that's essentially what SSH is). Kingston drives are very affordable and run well. Any SSD will do to be honest. I would go for a cheap well know branded one. There's not much point spending loads on one as the Pi wont be able to utilize it.

    • @MrBobWareham
      @MrBobWareham 3 роки тому +1

      @@MarkWattTech Thanks for the reply very helpful so I will get a cheap drive from eBay and move over my HA from the memory card to the SSD

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      @@MrBobWareham You will see a noticeable difference :)

  • @techanical
    @techanical 3 роки тому +1

    I have not been able to get duck dns working on the new system could you do a vid with changing up address to match old system and getting duck dns back up and running ?

  • @tomm2289
    @tomm2289 2 роки тому

    sorry I'm late to the party. Any plans on doing an updated video? Will this still work just looks slightly different?

    • @MarkWattTech
      @MarkWattTech  2 роки тому +1

      Hey Tom, I do touch on this in some of the later HA install videos ive done

    • @tomm2289
      @tomm2289 2 роки тому +1

      @@MarkWattTech thank you for reply. I'll Subscribe and check them out

  • @franktechniek
    @franktechniek 3 роки тому +1

    Entire video about snapshots and restoring, and not a word about the actual SSD which is still sitting on my desk waiting for things to happen.

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      Hey Frank.
      This video is just meant to show you how to migrate from an SD card to the SSD.
      In this video I’m presuming you have an SSD already setup with a clean HA image on it.
      I do have videos that show how to install HA on an SSD if your interested. Cheers

  • @diederikmaes2367
    @diederikmaes2367 3 роки тому

    I've had to roll back to SD unfortunately.
    After migration to SSD everything looked OK excpet for ZWave JS. Turned out I had forgot to disable Bluetooth in the boot file on the new restored install.
    However then it turned out that ZHA looked OK but I had nog control on any device anymore. Rebooting didn't help. Waiting a full night to let it sort out itself either. So I gave up for now and returned to the SD card. Immediately everything worked, so it's not the new flashed Pi that is the problem.

  • @davidc4162
    @davidc4162 2 роки тому

    Tried this but can't get the new install on the SSD to boot. I have HA 7.6 running on a Pi 4 4gb but it won't boot from the new etch of 7.6 on an ssd plugged into a USB 3 enclosure (ASIN

    • @davidc4162
      @davidc4162 2 роки тому

      Nvm found a compatibility list, its the usb. Its like a 50/50 chance apparently....

  • @spr0k3t
    @spr0k3t 3 роки тому +1

    One thing you should do is recommend previous videos for those who don't know how to set up specific components. Specifically these two (Quick) ua-cam.com/video/WDCE4_sP5_E/v-deo.html (Descriptive) ua-cam.com/video/WDCE4_sP5_E/v-deo.html. #5:05 . This will give you more views for your other videos as well as provide easy references for those following along. Don't go overboard in your referencing other videos though... stick to the topic if it's directly related.

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      Thank’s Kent. I did reference them in the description but I will be sure to reference / promote them better in the future. Appreciate the feedback as always :)

  • @Lezcarr
    @Lezcarr 3 роки тому

    Hi, I followed your video and booted on the SSD ok, the home assistant screen loaded and I had the choice to reinstall snapshot or created account tried both methods but still no joy, left it for ages still would not boot or load HA login screen again after each attempt, I had to write again with each attempt the image to get a fresh HA just no joy what so ever

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      Hey Lez. So you can get HA working on the SSD but your snapshot is failing?
      I recently created a new video on the SSD install/migration that uses a different approach. And I talk about a few issues in that video.

    • @Lezcarr
      @Lezcarr 3 роки тому +1

      @@MarkWattTech do you have a link to that video

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      Hey Lez. The video can be found at : ua-cam.com/video/HA1C1wgyJfI/v-deo.html

    • @Lezcarr
      @Lezcarr 3 роки тому +1

      Hi Mark, something to add to your video, as I now have mine up & running, if you have installed an ssl you will need to add add the https: to get it to loadup

    • @MarkWattTech
      @MarkWattTech  3 роки тому

      @@Lezcarr thanks for the Update Lez. I will pin a post about it to help anyone else that might have this issue. Cheers

  • @Wieczor178
    @Wieczor178 Рік тому

    How long should the Upload backup screen show for ? 40 min and still uploading :(

    • @MarkWattTech
      @MarkWattTech  Рік тому

      Have you tried refreshing your browser?

    • @Wieczor178
      @Wieczor178 Рік тому

      It just fails uploading backup, keep spinning even when I try to restore from superuser :( doesn't even give me option to select what to restore its 7GB :(

    • @Wieczor178
      @Wieczor178 Рік тому

      @@MarkWattTech sorted it, I had to upload backup via samba share but it looks OK now, thanks :)

    • @MarkWattTech
      @MarkWattTech  Рік тому +1

      @@Wieczor178 glad you sorted it out! Happy Hom Assistatnt-ing 👍🏻

  • @andreapastore4009
    @andreapastore4009 Рік тому

    Great ! The only (the only!) problem I have is that after switching from sd card to ssd I can no longer access homeassistant.local:8123, and neither ip of the raspberry!