in my plugin I use this code:
$bc = new backup_controller(backup::TYPE_1COURSE, $course_to_backup, backup::FORMAT_MOODLE,
backup::INTERACTIVE_NO, backup::MODE_AUTOMATED, $user_doing_the_backup);
$bc->execute_plan(); // Execute backup
$results = $bc->get_results(); // Get the file information needed
$file = $results['backup_destination'];
On my local dev server (WAMP) it is working wonderfully, but on our LAMP testing server, I get nothing back in $results.
The log says this...
PHP message: instantiating backup controller a89137dfd504a856931dc2d8943fbcb9
PHP message: setting controller status to 100
PHP message: loading controller plan
PHP message: setting controller status to 300
PHP message: applying plan defaults
PHP message: setting controller status to 400
PHP message: setting file inclusion to 1
PHP message: checking plan security
PHP message: setting controller status to 700
PHP message: saving controller to db
PHP message: calculating controller checksum d4e38f0f796bce816be92e119b891f85
PHP message: loading controller from db
PHP message: setting controller status to 800
PHP message: setting controller status to 1000
PHP message: saving controller to db" while reading upstream
And that is it... Why would my results come back empty?