desidero ripristinare un backup sulla stessa istanza. Questo non ha contenuti generati con plugin esterni, per il momento infatti ha solo una banale lista di argomenti e un paio di pagine create con il plugin di moodle.
Come dicevo, tentando di importarlo con lo script di cui nel post precedente, viene restituito l'errore:
!!! The URL is not valid !!!
!!
Error code: invalidurl !!
!! Stack trace: * line 355 of /lib/weblib.php: moodle_exception thrown
* line 1739 of /lib/modinfolib.php: call to moodle_url->__construct()
* line 509 of /lib/modinfolib.php: call to cm_info->__construct()
* line 412 of /lib/modinfolib.php: call to course_modinfo->__construct()
* line 2055 of /lib/modinfolib.php: call to course_modinfo::instance()
* line 565 of /backup/moodle2/restore_stepslib.php: call to get_fast_modinfo()
* line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_update_availability->define_execution()
* line 181 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()
* line 177 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
* line 167 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
* line 333 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
* line 27 of /prova.php: call to restore_controller->execute_plan()
!!
Grazie.
Andrea