public static function get_progress($backupid) {
        global $DB;

        $progress = array();
        $backuprecord = $DB->get_record(
            'backup_controllers',
            array('backupid' => $backupid),
            'status, progress, operation',
            MUST_EXIST);

        $status = $backuprecord->status;
        $progress = $backuprecord->progress;
        $operation = $backuprecord->operation;

        $progress = array('status' => $status, 'progress' => $progress, 'backupid' => $backupid, 'operation' => $operation);

        return $progress;
    }