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

Re: Error while restoring course use restore-backup.php and moosh

$
0
0
by Ken Task.  

"Is that the name of the backup file?
backup-moodle2-course-2446-c_1001_uai707_pai_7_ \ ( islam_disiplin_ilmu_kedokteran \ )_a_12022-20230706-1603.mbz"

This file name is generate automatically when i do backup via command line moodle, "\" mean space character.

Uhh ... from command line "\" isn't seen as a 'space' but as an 'literal'  So \( says to use the '(' character next.

What is backslash in command line?
Escape characters are used to remove the special meaning from a single character. A non-quoted backslash, \, is used as an escape character in Bash. It preserves the literal value of the next character that follows, with the exception of newline.

Uhhh ... using cli admin/cli/backup.php there is an option for 'shortname' ... have never used it myself.
HELP::  php backup.php
Perform backup of the given course.

Options:
--courseid=INTEGER          Course ID for backup.
--courseshortname=STRING    Course shortname for backup.
--destination=STRING        Path where to store backup file. If not set the backup
                            will be stored within the course backup file area.
-h, --help                  Print out this help.

By default in a 4.0.9+ (Build: 20230616) doesn't use courseshortname ... so dunno where that is coming from NOR why you would need it!

The query for that one user shows 2 users by the same username, but different mnethostid's ....
Change the query to see all columns where the user name is that d960231  would think there should be only 1 user!

Might want to check out that user via GUI.

"Is your DB fully compliant?
CLI scripts in code/admin/cli/ will assure that DB is."
What is command to do this?

Hmmmm ... we are not looking very hard here:
cd /path/to/moodlecode/admin/cli/
ls -l mysql_*

When executed as:
php mysql_[scriptname].php with no parameters, output will show options.
Then you can run same command with options you choose! smile

'SoS', Ken


Viewing all articles
Browse latest Browse all 6815

Trending Articles



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