Announcement

Collapse
No announcement yet.

How to backup Z-NET image

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to backup Z-NET image

    How do I make a back up copy of Z-NET image? It is V2 with 1.0.23 firmware.

    #2
    Easiest way is rpi-clone
    https://github.com/billw2/rpi-clone
    I have this set up to run once/day.

    Alternately, use Win32DiskImager
    https://sourceforge.net/projects/win32diskimager/
    This requires disassembly to move the SD card to a PC of course.

    Comment


      #3
      Originally posted by zwolfpack View Post
      Easiest way is rpi-clone
      https://github.com/billw2/rpi-clone
      I have this set up to run once/day.

      Alternately, use Win32DiskImager
      https://sourceforge.net/projects/win32diskimager/
      This requires disassembly to move the SD card to a PC of course.
      zwolpack,

      Thank you for the info. I made a backup image with Win32DiskImager and verified it works.

      Can you run rpi-clone on Windows as well or it has to be on another rpi?

      Comment


        #4
        rpi-clone doesn't run on Windows, it runs on the Raspberry Pi that you want to back up. It clones the active SD card to another card without having to remove the card. Another nice feature is that after the initial run, only changed areas are copied so subsequent runs typically take only seconds.

        Comment


          #5
          David understands the underlying architecture of the Z-Net better than most, but it is important to realize that the Z-Net operating system is static. The only time the image changes is when you edit the Ethernet/Wifi settings or HomeSeer pushes out an update. Once you have yours configured and take an image of it, you will not need another unless you update the software or IP settings. Nothing is written to the SD card during normal operation. All Z-Wave node and routing information is stored on the GPIO daughtercard and nothing is written to the SD card. Z-Wave backups are stored on the HS host machine.
          HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

          Comment


            #6
            ^--- what Randy said. I should have mentioned that ...

            Comment


              #7
              This also brings to mind the discussion of static IP assigned in the Z-Net vs DHCP reservations in the router. Since I use DHCP reservations in my router, all three of my Z-Nets grab their IP address from the router reservation. If I have a failure in an SD card, slipping in a freshly imaged SD card will get my Z-Net up and running at the same address.
              HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

              Comment


                #8
                David, Randy, thank you both for the help.

                Comment


                  #9
                  I was finally able to log into both my z-nets and I want to create an image of the SD card. I saw @zwolfpack comment about rpi-clone but first I need to install it on both z-nets.

                  Can someone post the commands to download the needed files please? I think that from the link I can figure out how to run the basic rpi-clone but first I need to install it.

                  sudo apt-get ???

                  Comment


                    #10
                    Originally posted by racerfern View Post
                    I was finally able to log into both my z-nets and I want to create an image of the SD card. I saw zwolfpack comment about rpi-clone but first I need to install it on both z-nets.

                    Can someone post the commands to download the needed files please? I think that from the link I can figure out how to run the basic rpi-clone but first I need to install it.

                    sudo apt-get ???
                    Here is my installer for the most recent version of rpi-clone

                    To install, download the attached zipfile to the rpi, then execute these commands:

                    unzip rpi-clone-batch.zip
                    make install

                    This installs rpi-clone and enables it to run once a day (cron job). You will need to run it manually the first time because the cron job won't write to a disk unless the labels match (to avoid accidental overwrites).
                    To run manually,

                    sudo rpi-clone -U -f sda

                    rpi-clone-batch.zip
                    Last edited by zwolfpack; June 12, 2019, 11:35 PM.

                    Comment


                      #11
                      @zwolfpack - Thanks! I'll give it a shot.

                      Comment


                        #12
                        BTW, here is a good card reader for the rpi:
                        https://www.amazon.com/dp/B012D3A4FM...I16Q9EA7Y0MEXI

                        Comment


                          #13
                          Thanks for that link, I had previously bought a similar one. But this one is les $$ and also has microusb. Cool!

                          Comment


                            #14
                            @zwolfpack - The rpi-clone method worked perfectly on both z-nets. I expected it to work on my RPi3 with zigbee board but I got the following error. Thoughts?

                            pi@pi:~/rpi-clone $ sudo rpi-clone -f sda

                            Cannot find 'sda' in the partition table. The partition table is:
                            major minor #blocks name

                            1 0 4096 ram0
                            1 1 4096 ram1
                            1 2 4096 ram2
                            1 3 4096 ram3
                            1 4 4096 ram4
                            1 5 4096 ram5
                            1 6 4096 ram6
                            1 7 4096 ram7
                            1 8 4096 ram8
                            1 9 4096 ram9
                            1 10 4096 ram10
                            1 11 4096 ram11
                            1 12 4096 ram12
                            1 13 4096 ram13
                            1 14 4096 ram14
                            1 15 4096 ram15
                            179 0 31166976 mmcblk0
                            179 1 1646295 mmcblk0p1
                            179 2 1 mmcblk0p2
                            179 5 32767 mmcblk0p5
                            179 6 67584 mmcblk0p6
                            179 7 29413888 mmcblk0p7

                            Comment


                              #15
                              Its not finding a destination device (sda should appear in the partition table). Do you have the card reader and SD card installed?

                              Comment

                              Working...
                              X