+ Post New Thread
Results 1 to 5 of 5
How do you do....it? Thread, Backing up Moodle in Technical; This is probably been discussed many times, but I can't seem to find a 'full' solution from start to finish. ...
  1. #1

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    242

    Backing up Moodle

    This is probably been discussed many times, but I can't seem to find a 'full' solution from start to finish. We are starting to use our Moodle after half-term and I need to start backing it up. I will be backing up to a NAS box (FreeNAS with SMB setup).

    I don't know what to backup or how to backup. Can anybody give me a solution? (scripts for cron jobs etc would be grand )

  2. #2

    Join Date
    Mar 2007
    Posts
    1,846
    Thank Post
    91
    Thanked 321 Times in 242 Posts
    Rep Power
    91
    You can back up courses and config from within moodle, moodle.org will have details. Best if you backup the db and other files as well though, I stop the db from running then use ntbackup to copy the info. This has the added advantage that you then have a backup of the backup so if you need to go back a way you can.

  3. #3

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    242
    Ok, forgot to say my Moodle install is sitting on a Ubuntu server. I want an automated solution - something I don't have to think about (or remember to do).

  4. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227
    I do a mysqlhotcopy (can be done on-line) of the database

    MySQL :: MySQL 5.1 Reference Manual :: 4.6.9 mysqlhotcopy ? A Database Backup Program

    then use rdiff-backup to backup the filesystem

    rdiff-backup: Main

    to an Openfiler box.

    Openfiler — Openfiler - Open Source Storage Management Appliance

    Some perversion of the rsyncd config on Openfiler is required to make this work.

  5. #5

    Join Date
    Jun 2008
    Posts
    17
    Thank Post
    1
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Moodle itself can backup the courses for you (and users,blogs etc...). You can set the various backup options under:

    Site Administration > Courses > Backups (/admin/settings.php?section=backups)

    The moodle cron script (/moodle/admin/cron.php) must be run regularly for this to work. You'll end up with a bunch of zip files in the backup folder, one for each course. eg: backup-hrm-20090527-2201.zip

    You can either have the backup folder mounted over the network or use another script to rsync the files to the nas.

    More info here: Backup and restore FAQ - MoodleDocs

    The alternative is to use a combination or mysqldump and rsync in a script. Examples: Site backup - MoodleDocs



SHARE:
+ Post New Thread

Similar Threads

  1. Backing up zimbra
    By reggiep in forum *nix
    Replies: 22
    Last Post: 25th February 2009, 02:42 PM
  2. Backing up to NAS
    By Jobos in forum How do you do....it?
    Replies: 8
    Last Post: 16th November 2008, 03:01 PM
  3. Backing up Apache2Traid
    By FN-GM in forum How do you do....it?
    Replies: 8
    Last Post: 3rd July 2008, 12:45 AM
  4. Replies: 7
    Last Post: 20th February 2008, 05:37 PM
  5. backing up
    By gwendes in forum How do you do....it?
    Replies: 7
    Last Post: 13th November 2007, 10:06 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •