Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: Restore Course from cli using admin/cli/restore.php

$
0
0
by Bruno Malaval.  

Hi,

I've made new tests this morning. By the way, I'm on Moodle 3.8+, not 3.8.1

Each time I try to restore courses, it's in an empty category. I remove all courses for each test.

I try :
Restore the course which causes problems alone
by your script => it's OK
by the UI => it's OK

Restore all courses from the category
by your script as mentioned in the post above => ERROR
by your script as mentioned in the post above, but with the option " --mode=import " => it's OK

Here's trace from the restore process with the import mode, for the problematic course

== Performing restore of "Cours MoodleBox" (cours1) to (cours1 with id 2440 in category 489) from file /var/lib/moodle/backup_prod/sauvegarde-moodle2-course-1647-cours1-20200110-0816.mbz (backupid is 77f1a0b0dfb45d82fc710d4e70483764 target is NEW_COURSE and mode is import ==
instantiating restore controller 50b8e42fd6c91fec85848ffe96437128
setting controller status to 100
loading backup info
loading controller plan
setting controller status to 300
applying restore defaults
Unknown setting: questionbank
setting controller status to 400
checking plan security
setting controller status to 600
saving controller to db
calculating controller checksum 85a2ca9ef7d8e313e1f543b05bcc7ea4
loading controller from db
setting controller status to 700
saving controller to db
calculating controller checksum 7223fd149ef4d1be9e714adf32a901df
loading controller from db
setting controller status to 800
saving controller to db
calculating controller checksum 6e89e899317aa003d6f496717b8263bb
loading controller from db
processing file aliases queue
setting controller status to 1000
saving controller to db
== finished. ==

I send you link to download the mbz file from this course by pm

thanks

Bruno


Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>