2014-10-30, 22:41
You could modify the scheduler.py file of the addon to periodically check for restore points. You'd have to store the last known point in a txt file or something to refer against. There are some methods already available so you could do something like:
The scheduler start() method will execute every 500 ms so I'd just put something in there that executes every 6 hrs or something. If you really wanted to get fancy you could use the cron syntax parser already bundled with the addon (see the findNextRun() method) and do something based of a cron schedule .
Code:
#create backup object
backup = XbmcBackup()
#list backups
restorePoints = backup.listBackups()
for aDir in restorePoints:
#this is an array, 0 index is folder name, 1 is backup name as a string
if int(aDir[0]) > lastBackup:
#notify user here
The scheduler start() method will execute every 500 ms so I'd just put something in there that executes every 6 hrs or something. If you really wanted to get fancy you could use the cron syntax parser already bundled with the addon (see the findNextRun() method) and do something based of a cron schedule .