Upgrading is a very difficult option as the first thing one needs to do is take a backup and that is not working. Extremely frustrating. What next?
a. Put my Moodle site in maintenance mode
b. Do a database backup using phpmyadmin.
c. Then I shall ftp to my moodle site and download the entire moodle files to my hard disk?
d. Rename the current Moodle directory to something else, then unpack the new Moodle archive (1.8.4) into the old location.
e. Trigger the upgrade processes within Moodle.
f. Keeping praying all the time.
Is that all? Unluckily the upgrade process from 1.8.2+ to 1.8.4 is not at all clear in the Moodle doc.
By the way have you checked permissions of that course moodledata/coursenumber/backupdata folder? If the course is huge (lots of content and students) you could try to delete some of the content and move it to "child courses"
Note: downloading files with ftp may take hours and some ftp programs may not report transfer errors (at least filezilla does show you errors during ftp upload)
How do I do that? I have access to PhpMyAdmin via Dreamhost.
When you have selected database scroll down:
Could the reason be this old bug with php 4 and glossary (entries have no category)
Have you tried filezilla http://filezilla-project.org/ ?
give some more info. Uploading and extracting files with systems like Webmin http://www.webmin.com/ is much faster but filezilla is very easy to use and install (to your local PC)
Maybe the corruption is in file mod/glossary/backuplib.php? (But then you could not backup any course that has glossaries) It's strange because backups used to work for your glossaries - I would suspect some error in database and either table mdl_glossary or mdl_glossary_categories but if you deleted all glossaries from your course it should not stop backup anymore.
Or it is just coincidental that backup fails (out of memory?) before glossary...
I'm not sure about that because I have extracted large zipped files either with Webmin or putty (when I need them to be automatically extracted) and used FileZilla for drag and drop folders or files from server to PC or from PC to server or to change permissions of simgle files or folders. As I said moving files (or usually the root folder of some program) with FileZilla may take more time but it still works...
By the way have you asked from your host if it is possible to change the upload limit for your WebFTP account?
I have one new idea. Export all glossary entries from your course to a file (link at top right corner of glossary entries page) and delete glossaries from your course. Try to backup course again. If backup is successful import glossary entries back.
Some corruption of data in glossary may stop backup - you could also check glossary entries with phpmyadmin or take a mysql dump file from glossary tables (export tables as a sql file).
Does version 1.8.4 contain any improvements that are specific to backup/restore? I'm experiencing some very unpleasant problems restoring courses to 1.8.3 (going through 1.6 and 1.7 from 1.5). Interestingly enough (should I say mind bogglingly enough?) the same courses can be restored to 1.9.
We are not ready to use a beta version in our production server but if 1.8.4 has improvements in this area, we would give it a try (not very excited about going through an upgrade process again with so many ongoing courses and users, though).
The problem got sorted out by upgrading from 1.8.2+ to 1.8.4. The steps I followed were:
- Download Moodle 1.8.4 tgz file from – http://download.moodle.org/
- Upload the tgz file to your Moodle site say the moodlelearning.org folder, using a ftp program.
- Unpack moodle 1.8.4 in the moodlelearning.org directory. The command to extract the file is: tar -zxvf moodle-1.8.4.tgz It will create a moodle folder
- You need to edit the restorelib.php file in your moodle/backup folder. You need to comment out line 871 namely://$blockobj->after_restore($restore);
Create a new database in MySQL. Database name: test / New hostname: test.moodlelearning.org / User: tim / Password: xxxxxx
- Fire the SQL query - ALTER DATABASE test DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
- Put your Moodle site in maintenance mode.
- Repair any tables. Next do a database export of your existing Moodle course. Let's say that the file name created is class.sql
- Restore class.sql to the new database test. Remember to use UTF-8
- Rename your old course folder say class to oldclass
- Rename moodlelearning.org_class_moodledata to moodlelearning.org_oldclass_moodledata
- Make changes in config.php namely:
$CFG->dirroot = '/home/tim/moodlelearning.org/oldclass';
$CFG->dataroot = '/home/tim/moodlelearning.org_oldclass_moodledata';
- Rename moodle folder to class folder
- With a web browser browse to your moodlelearning.org/class/ directory and follow the installation configuration instructions
- Check config.php of the new install for proper settings
- Add all plug-ins.
Note: Modify the above folders as per your installation. Hope this helps.