I have a UrBackup server performing backups from my home’s laptops but, sometimes I’m out traveling but would like to keep an eye on the backups run, but there is no way to access the UrBackup gui outside and I don’t like to have it exposed. So, I would like to integrate UrBackup server to Home Assistant in order to create a card to check running and latest completed backups.
Is there a way to do it?
Developer folks, is there a way to create an integration for that?
Thank you in advance.
I’m not a developer but the application appears to have a command line interface. You should be able to use the command line sensors and shell command to monitor and control it:
Late reply but:
I’ve made a small script to get status from URBackup to HA. It’s still a work in progress.
This is how it looks ln lovelace with a html-template-card when a backup is running:
and this is how it looks when no backup is running:
Please let me know if thats interesting and I’ll share the details.
Well it’s not a elegant solution but this is how it works:
On the Windows PCs that are running the urbackup client I trigger a powershell script at startup (by putting the script in shell:startup). This is the script:
It just checks if the VSS Service is running and if it is the file urbackupstatus.cmd gets triggered every 30 secs.
The file urbackupstatus.cmd contains this:
cd c:\progra~1\urbackup\
urbackupclient_cmd.exe status > \\192.168.1.99\config\urbackupstatus\pchostname.json
exit
That command reads the clients urbackup status and creates a file on my HASS config\urbackupstatus folder.
I then have the folder watcher plugin looking at that folder and if change is detected this command is executed (command inputed in .config file):
As I said it is not elegant but it works flawless and is being updated every 30 sec only while backups are running.
Let me know if you try to set it up and need any help.