Backing up Moodle settings

Backing up Moodle settings

by Randal Johnston -
Number of replies: 7

I hope this has not been asked before and I over looked it.  I am backing Moodle up so i can move it to another server. I have gotten all the courses backed up, but I am wanting to know if there is a way to back up the Moodle settings so I don't have to reconfigure everything on the new install to match the old install. Thanks in advance.

Average of ratings: -
In reply to Randal Johnston

Re: Backing up Moodle settings

by Ken Task -
Picture of Particularly helpful Moodlers

Think you want a site backup which consist of an archive of the moodle code directory (especially the config.php file), the moodle data directory, and an sql dump of the database for moodle.

http://docs.moodle.org/22/en/Site_Backup_for_Low-tech_Users

or

http://docs.moodle.org/25/en/Site_backup

If your moodle version is <-2.x (ie, 1.9.x) site backups are the same.

'spirit of sharing', Ken

In reply to Randal Johnston

Re: Backing up Moodle settings

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Ken is right and has detailed the best way to migrate a server.  If you have a specific reason for wanting to restore courses instead, here is a link to a plugin that allows you to export all your site settings and reimport them to a new site.  A must have for you type of restore (which I have done several times when wanting to rebuild a fresh database!).

https://moodle.org/plugins/view.php?plugin=block_admin_presets

Average of ratings: Useful (2)
In reply to Emma Richardson

Re: Backing up Moodle settings

by Mark Pearson -

EMMA!

I have just seen this posting. This plugin will be a life saver. I regularly build a sandbox server and then have to duplicate all the settings which is an error ridden process. Thanks for posting the link here.

Mark

In reply to Mark Pearson

Re: Backing up Moodle settings

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Glad it helps - it is a great plugin.