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 Indra Abdurojak.  

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.
>> maybe backslash is parameter for space character on linux, like this:


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!
>> is there any experience for this case? except that's must only 1 user?

Might want to check out that user via GUI.
>> this is gui for user d960231

email address d960231@unisba.ac.id is user with mnethostid = 1
email address asep.ahmad@unisba.ac.id is user with mnethostid = 0

"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_*
>>  collation.php or comressed.php?

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

Thanks for advance. 😀

Viewing all articles
Browse latest Browse all 6815

Trending Articles



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