Thanks for this excellent script. One issue - on our Windows Server the script failed during nigtly backup.
The problem was that 1 char hour“s (0-9) contains a <space> char, etc " 8". This causes the mkdir and mysqldump command lines to fail, since windows cant handle <space> in filenames or folders.
My conclusion is that this script does not work on any server between 0:00-09:59...