Announcement

Collapse
No announcement yet.

Jon00 Backup Config Utility for Homeseer 3

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

    Jon00 Backup Config Utility for Homeseer 3

    This utility enables you to backup Homeseer configuration files using an event rather than manually pressing the "Backup Config" button on the Setup/General tab page. By default, 10 copies of previous backup files are stored.

    Works both in Windows & Linux.

    As always, it is available from my site (Click on my banner below).
    Jon


    #2
    Jon,

    I thought HS 3already creates a number of backup files.

    Though I have a number of hsd files, I'm uncertain at the interval at which they are backed up

    Robert
    HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

    Comment


      #3
      That is only for the database. The backup config button zips up the Config, Data & scripts folders as 3 zip files.
      Jon

      Comment


        #4
        I've got this error showing up in the log. Setting is Para = 3

        Error in Main Block 2: System.IO.IOException: Directory /usr/local/HomeSeer/ConfigBackup/3 is not empty at System.IO.Directory.Delete (System.String path) [0x00000] in :0 at scriptcode2.VBWrapper.Main (System.String Data) [0x00000] in :0

        I think it is suggesting that the last folder can't be deleted. Seems to be writing the latest backup OK.

        Any ideas why this error is showing up?

        Comment


          #5
          I don't have a Linux copy of Homeseer working at the moment, however I have made a small change which should resolve the issue.

          Would you try the version I sent you via PM.
          Jon

          Comment


            #6
            Originally posted by jon00 View Post
            I don't have a Linux copy of Homeseer working at the moment, however I have made a small change which should resolve the issue.

            Would you try the version I sent you via PM.
            Thanks for the quick work on this. That has fixed the problem. Logs are clean now. Thanks again, Jon.

            Andrew

            Comment


              #7
              Originally posted by langenet View Post
              Jon,

              I thought HS 3already creates a number of backup files.

              Though I have a number of hsd files, I'm uncertain at the interval at which they are backed up

              Robert
              What if the hard drive dies? Use Jon's backup utility to back up somewhere else including all of your scripts, plugin configs and so forth.


              ~Bill

              Comment


                #8
                Error

                Hi Jon

                Been running your config backup for a while, and now have this error:

                Error in Main Block 2: System.IO.IOException: The directory is not empty. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) at scriptcode10.VBWrapper.Main(String Data)

                Any thoughts?

                Plenty of disk space and no permission changes - happens at every run.

                Thanks in advance

                David
                ---------------------------------------------------http://weather.penicuik.org

                Comment


                  #9
                  Are you using the latest version (V1.0.1) which was released in December?
                  Jon

                  Comment


                    #10
                    Hi Jon

                    Possibly not... I do check from timer to time, but I dont think I can look at file properties of the script to see a version as you could an exe, so will go get it from you site and report back.

                    Thanks

                    David
                    ---------------------------------------------------http://weather.penicuik.org

                    Comment


                      #11
                      For this one it would be in the documentation.....
                      Jon

                      Comment


                        #12
                        Glad to report all now OK Jon - thanks for the pointer.

                        David
                        ---------------------------------------------------http://weather.penicuik.org

                        Comment


                          #13
                          I grabbed your Backup script last week and the script is dated 11/26. Hopefully that is the latest.

                          On linux the directories are case sensitive, so I am not sure which folder is getting backed up by this script. The zip for this script of yours has Scripts in the zip, but some of the older versions had scripts (so I now have both). Same thing with Docs (in current zip) and existing docs folder. I would assume it would be better to use all lowercase, but I can adjust either way, but consistency is probably important.

                          So, I was going to setup this script, but I haven't tried to set events based on long periods of time before, so not sure how I set it to run once a week? It seems like the hours field will take numbers up to 59, but then it complains it isn't formatted correctly? Is there a way to set the script to run weekly?

                          Also, chance of another parameter that lets you choose to store the backups outside of the main Homeseer folder? I already do full directory backups and I would rather not be backing up backups of the backups in that process. I would keep more versions of the backup, if they weren't in the same folder.

                          Maybe I will eventually automate ftp'ing these backups to another box instead of manually remembering to do this.

                          Thanks for creating this script. . .it will help get some better automated backups started.

                          Comment


                            #14
                            All this does is simulate pressing the "Backup Config" button on the Setup/General tab page. The code carrying out backup is built in to HS3. Any changes to that would have to be addressed to HST.

                            For events to trigger on a specific day, take a look here: https://forums.homeseer.com/showthread.php?t=172746
                            Jon

                            Comment


                              #15
                              Originally posted by jon00 View Post
                              All this does is simulate pressing the "Backup Config" button on the Setup/General tab page. The code carrying out backup is built in to HS3. Any changes to that would have to be addressed to HST.

                              For events to trigger on a specific day, take a look here: https://forums.homeseer.com/showthread.php?t=172746
                              Yeah. . .I realized that after I got it setup. I'll have to create my own scripts to just move that folder out. . .or maybe just customize the full folder backup to exclude certain things. . .

                              Ah, now I see why I didn't find a date option. . .it has to be the second condition in the event. Thanks.

                              Comment

                              Working...
                              X