by Alain Raap.
You're welcome Ken. And what might be a good tip I think, exclude (delete) the courseid's you find in the mdl_backup_courses table with laststatus = 2 (BACKUP_STATUS_UNFINISHED). Use for these 'problem' courses the bash script Ken described in this thread earlier.