I'm moving a Moodle installation to a new URL so I need to correct all of the image URLs in the Resources. I downloaded the Backup, unzipped it, did an HTML search/replace and then rezipped it, uploaded it and attempted to restore it but Moodle says it can't find the moodle.xml even though if I unzip the file on the server I can see it - and I can see it before I zip things up on my hard drive.
Alternately: Anyway to do a search and replace via PostgreSQL? Something along the lines of
http://oldmoodledomain.com/moodle/
to
http://newmoodledomain.com/moodle/
Thanks!
Correcting URLs During Restore - Isn't Finding moodle.xml
Number of replies: 2Re: Correcting URLs During Restore - Isn't Finding moodle.xml
There is a utility in your admin directory called replace.php that does the search and replace you describe. The script is described here.
Moodle's replace.php Search and Replace Worked
Thanks so much - it worked! (Using keyword-rich title for the next chum that needs to find this)