Backing up in Moodle Cloud

Backing up in Moodle Cloud

by Jobst Schmalenbach -
Number of replies: 2

How do I set the backup directory if one does not have access to the filesystem?

Is it possible to download a Moodle cloud site via ssh/rsync?
Is it possible to backup a Moodle cloud site to an external site ?

Average of ratings: -
In reply to Jobst Schmalenbach

Re: Backing up in Moodle Cloud

by Kelly Howell -

Hi Jobst.

You can setup Automated Course Backup in any paid or 45 Day Free Trial MoodleCloud sites (note that Automated Backup is disabled in pre-2018 free sites).

To setup Automatic Course Backups:
  1. Go to Administration > Site administration > Courses > Backups > Automated backup setup.
  2. Set backup auto_active to Enabled. Make selections (below are some you may want to consider)
  • Select the days of the week to run the backup
  • Set the execution time for the backup process. For most servers, early morning will be the best time. Keep in mind the time zone your server is using.
  • Select the maximum number of backups kept (default is 1)
  • Select if you would like the course name in the backup title (default is No)
  • Select if you would like to Skip courses not modified since previous backup.
  • Click Save Changes
After Automated Backup has run you will need to go to  go to Site Admin - Server Files and find the automated backup file/s (MBZ) and download to your computer.

TO RESTORE A COURSE
Go to Site Admin / Courses/ Restore Course to upload that file and Restore a course.
You can learn more about backup and restore here:
and about setting up automated course backup on MoodleCloud https://docs.moodle.org/en/Automated_course_backup#Automating_course_backups

You will receive a regular email to let you know the status of your backups. You don't need to worry about those that are skipped (they have likely not changed since last backup) the 
important thing is to go to the Site's Server Files regularly and download the Backup files to your computer. 

This way if you site or course is deleted then you have the Backups. When you receive an email about your automated site backup, and some backups show as ‘pending status’ this indicates exactly that, a backup is waiting to be made. There may be an existing older backup though.

There should be a report here: https://XXX.moodlecloud.com/report/backups/index.php listing all the backups.‘Green’ indicates everything is OK, ‘Skipped’ happens because nothing changed in the course. You can also click the icon next to the course name, and it'll say if it's OK or not.

If you would like to confirm, you can browse to: https:/XXX.moodlecloud.com/backup/restorefile.php?contextid=1 (assuming that course ID for that course is 1) and click ‘Choose a file’ under ‘Import a backup file’, then under ‘Server files’ you can expand the trees to eventually see all the backups for a course.

TO BACKUP TO AN EXTERNAL SITE - SITE EXPORT

You are not able to download via ssh/rsync unfortunately, instead we offer an export feature.
You can find your MoodleCloud export feature in your MoodleCloud Portal. The MoodleCloud Portal is where you manage your MoodleCloud account, billing details and access statistics on the usage of your site.
 
  1. Login to the MoodleCloud Portal 
  2. Enter your site name and your password (the same as your MoodleCloud site) 
  3. Click on ‘Tools’ tab

image

4. Click on ‘Export this site’ 

5. You will receive an email when the export is completed

6. In your MoodleCloud Portal, Click on the "your portal" link to download the file.

Kind regards,
Kelly

Average of ratings: Useful (2)