Thank's for your script, just a sugestion if you wont to integrate in next release: add _failed in the name of the failed backup folder destination for a failed backup, that way we know content may not be complete or reliable.
The button 'CHECK FOR UPDATES' in Docker, plugins, ... pages of the web interface, can desapear, and the system check for updates as soon as the page is shown!