• BillH
    0
    Last week I just happened to fire up the Cloudberry user interface and found that I had not had a backup in over a week. Upon further investigation I found that since I upgraded my Windows 10 PC to the 1809 release, the Cloudberry Backup service fails to start whenever I perform a system restart. It seems that if the service is not running the scheduled backups won't run and there is no warning to indicate that you have a problem.

    I contacted support with this issue and the Matt L, my support technician, was great as he provided me with a great deal of information that I was able to use to write a couple of utility scripts to keep me help me avoid this situation in the future.

    Not to say anyone else is having a failure of the service starting because this could be something specific to my PC but if you have not checked your logs entries recently you may want to do so just to make sure your scheduled backups are really taking place.
  • Matt
    44
    I would say this is an overkill, but you can actually share the script with us. I believe we already discussed that in one of our support tickets. If the script is indeed useful I can share it with our developers and we can constructively discuss it with our R&D.
  • BillH
    0
    Matt,

    Here's the script I wrote to make sure that the service is running. I saved the script below to a file called CBStart.vbs . I then opened the Task Scheduler on my Windows 10 PC and set up a task to run the .VBS file 15 minutes before my Cloudberry nightly backup is set to run. Note that on the task scheduler you have to check the checkbox on the General Tab so that the script will run with the highest privileges because with standard privileges command to start the service will not function. Note that when testing this script I rat it in a command prompt that I opened to run as an administrator. In regard to whether it's overkill or not depends on how important it is to run your nightly backup because as I mentioned previously if the service is not running, your backups are not taking place there's no warning to tell you that your backups are not taking place.



    ServiceName = "Cloudberry Backup Service"
    Set wmi = GetObject("winmgmts://./root/cimv2")
    state = wmi.Get("Win32_Service.Name='" & ServiceName & "'").State
    If State = "Stopped" then
    Set shell = CreateObject("WScript.Shell")
    Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
    Set colListOfServices = objWMIService.ExecQuery ("Select * from Win32_Service Where Name ='" & ServiceName & "'")
    For Each objService in colListOfServices
    objService.StartService()
    Next
    shell.LogEvent 4, "CloudBerry Backup Service was restared"
    End If
  • Matt
    44
    Thanks once again, quite interesting stuff.
bold
italic
underline
strike
code
quote
ulist
image
url
mention
reveal
youtube
tweet
Add a Comment

Welcome to CloudBerry Lab Forum!

Thank you for visiting! Please take a moment to register so that you can participate in the discussions!