MDL-69307 restore: Add CLI script to restore a course.

Co-authored-by: Matt Porritt <[email protected]>
This commit is contained in:
Mikhail Golenkov
2020-08-26 14:35:21 +10:00
co-authored by Matt Porritt
parent a04309d40e
commit 39b65190e2
2 changed files with 111 additions and 0 deletions
+2
View File
@@ -200,6 +200,7 @@ $string['errorinvalidformat'] = 'Unknown backup format';
$string['errorinvalidformatinfo'] = 'The selected file is not a valid Moodle backup file and can\'t be restored.';
$string['errorrestorefrontpagebackup'] = 'You can only restore front page backups on the front page';
$string['executionsuccess'] = 'The backup file was successfully created.';
$string['extractingbackupfileto'] = 'Extracting backup file to: {$a}';
$string['failed'] = 'Backup failed';
$string['filename'] = 'Filename';
$string['filealiasesrestorefailures'] = 'Aliases restore failures';
@@ -302,6 +303,7 @@ $string['questionegorycannotberestored'] = 'The questions "{$a->name}" cannot be
$string['restoreactivity'] = 'Restore activity';
$string['restorecourse'] = 'Restore course';
$string['restorecoursesettings'] = 'Course settings';
$string['restoredcourseid'] = 'Restored course id: {$a}';
$string['restoreexecutionsuccess'] = 'The course was restored successfully, clicking the continue button below will take you to view the course you restored.';
$string['restorefileweremissing'] = 'Some files could not be restored because they were missing in the backup.';
$string['restorenewcoursefullname'] = 'New course name';