Creating+a+Simple+Backup

=Creating a Simple Backup=

You can create backup of your Moodle installation in 3 easy steps. Let's say that your Moodle is installed in a subdirectory of your **/var/www** folder called **moodle**. In this case your website will be accessible at http://example.com/moodle/

In order to backup your files we recommend using Webmin and copy them to your local PC. You will need to copy the **Moodle** directory located inside your **/var/www** folder. If you're not sure which folders should be copied please copy the whole **/var/www**. The **Moodle** directory is where the data for your online courses is stored. The **Moodle** directory is where your Moodle system is installed - if you can access your Moodle courses at http://example.com/moodle, then you can access the Moodle directory is at the folder public_html/moodle from your website files. If you access Moodle at http://example.com/, then the Moodle directory at the folder **/var/www**.
 * 1. Copy the Moodle files on your local hard drive**

The Moodle software stores the users details and Moodle settings data in a MySQL database, so you need to back it up too. Most Moodle upgrades will alter the database tables, adding or changing table fields. Each database has different ways to backup. In this training, the name of your Moodle database would look be **moodle**, where the **moodle** is your hosting account username.
 * 2. Create a backup of your database**

There is a folder, named **moodledata** and it is usually located in your **/var/** folder, not in your **/var/www/** folder. You must download the **moodledata** directory too, as it contains very important information about your Moodle installation.
 * 3. Create a backup of the** **Moodledata folder**

You can also setup an [|rsync] cronjob that will allow you to automate this process.