where is the default folder for course backups in moodle stored?

by Christelle McDermott 9 min read

Because autobackups was set to 'Course Backup File Area', the file is stored in /moodledata/filedir/ by it's contenthash. Take the 3397 file... called backup-moodle2-course-4-themetest-20181121-1225.mbz in meta data (the DB) is physicially in /moodledata/filedir/c7/f2/ and it's name is really c7f218e13d0aff494e90bad606151c9a19996130

The . mbz backup file for courseid=25 will be stored in the backup subfolder in the Moodledata ($CFG->dataroot) folder.Aug 19, 2021

Full Answer

Why are files not included in Moodle course backups?

Nov 21, 2018 · Because autobackups was set to 'Course Backup File Area', the file is stored in /moodledata/filedir/ by it's contenthash. Take the 3397 file ... called backup-moodle2-course-4-themetest-20181121-1225.mbz in meta data (the DB) is physicially in /moodledata/filedir/c7/f2/ and it's name is really c7f218e13d0aff494e90bad606151c9a19996130

How do I restore a Moodle course from a zip file?

Aug 19, 2021 · php backup.php --courseid=25 --destination=\\moodledata\backup. where '--courseid' is the id of the course that you want to backup. The .mbz backup file for courseid=25 will be stored in the backup subfolder in the Moodledata ($CFG->dataroot) folder.

What does-backup-moodle2-mean?

Mar 12, 2020 · From the command line CD to the Moodle \admin\cli folder and run this command: php backup.php --courseid=25 --destination=\\moodledata\backup where '--courseid' is the id of the course that you want to backup. The .mbz backup file for courseid=25 will be stored in the backup subfolder in the Moodledata ($CFG->dataroot) folder. Tips and tricks

How to change the name of a Moodle backup archive?

Aug 10, 2021 · In Site administration > Courses > Backups > General backup defaults, there is a setting for "Include logs." By default, this is off. If you enable this, then the logs from the user activities can be saved as the option "Include course logs" will now appear on the backup menu of items to include in the backup.

How do I access my Moodle backups?

Re: And WHERE do the moodle backup files go?Select a course from courses.Click Backup.Set what is to be backed up.Make the backup.Click Continue.IMMEDIATELY download the backup.When the download advice appears at the bottom of the Moodle window, right click it and select show in Finder.More items...•Oct 13, 2019

Where is the backup folder located?

Where can I find my backup files?Open (My) Computer/This PC.Open the Backup Plus drive.Open the Toolkit folder.Open the Backup folder.Open the folder that is named after the computer that was backed up.Open the C folder.Open the Users folder.Open the User folder.

Does Moodle have backups?

A site backup allows a site administrator to save everything associated with a moodle site. These backups can be restored to bring a site back to the point in time when the backup was made.Apr 16, 2021

How do I restore a backup in Moodle?

Restoring a course backupGo to Settings > Front page settings > Restore or Settings > Course administration > Restore.Upload the backup file or choose a file in the course backup area or user private backup area and click Restore.Confirm - Check that everything is as required then click the Continue button.More items...•Jul 5, 2012

Where are backups stored Windows 10?

By default, File History backs up important folders in your user folder—stuff like Desktop, Documents, Downloads, Music, Pictures, Videos, and parts of the AppData folder. You can exclude folders you don't want backed up and add folders from elsewhere on your PC that you do want backed up.Aug 11, 2017

Where are my backups Windows 10?

Right-click the Windows icon, choose Settings > Update & Security > Backup. Step 2. Under Back up using Windows File History. Click More Options to open Windows 10 Backup Options.Feb 17, 2022

Where is the Moodle data directory?

The moodledata directory is initially created with an initial install of a Moodle site. Site administrators can see the actual moodledata directory name and location in the config. php file.Aug 26, 2011

How do I setup a backup in Moodle?

/To set the backup schedule:Go to Administration > Site administration > Courses > Backups > Automated backup setup.Set backup_auto_active to enabled.Select the days of the week to run the backup.Set the execution time for the backup process. ... Set the "Save to..." path.Apr 15, 2020

How do I download a backup from Moodle?

Downloading a backup fileGo to your course site in Moodle.Find the Administration block: Click Restore.Go to the User private backup area.Find your backup file. (The most recently created file will be at the top of the list.) ... Click Download to copy the backup to your hard drive.

How do I export a course content in Moodle?

Exporting Content From Moodle From within a course, from the course Administration menu, choose Backup. Select whether to export as a Common Cartridge or a native Moodle file. Follow the succession of screens, to complete the process.

How do I access old Moodle courses?

To access an archived course, click on the link within the Kiosk. To view all courses, click "Show all X courses" where X is the number of hidden courses. Any gray links indicate courses that are hidden from student view.

Anonymizing user information

Anonymize user information is a backup feature which "protects user identities" by making each user anonymous. If this box is checked in the backup initial settings, Moodle will substitute aliases for real names, substituting @doesntexist.com email addresses and so forth. For example "Max Manager" might become "anonfirstname4 anonlastname4".

Asynchronous course backups

Note: With large courses it is helpful to be able to continue working while a course backup is being made. To achieve this, you need to enable asynchronous backups in Site Administration / Courses / Backups / Asynchronous backup/restore .

Tips and tricks

Lose content after a restore in Moodle 2.0 ? Do you see topic headings that say "Orphaned activities"? Solution: Go to course settings and increase the number of topic sections and things will return to normal.

Creative uses

The backup and restore processes can offer the teacher and administrators many creative solutions.

General backup defaults

Default settings for course backups can be set by a site administrator in 'General backup defaults' in the Site administration.

Error: Trying to restore user 'admin' from backup file will cause conflict

Before proceeding, it would be advisable to have a second admin account just in case something goes wrong.

What are the pros and cons of course versus site backups?

Site backups are recommended in order to have all data saved with the best confidence and the shortest recovery time.

Why is my automated course backup much smaller in size than my manual course backup?

This is an intentional design decision. Because of the way files are stored in Moodle 2.x, there is no need to include the files in the backup if you are planning to restore them to the same Moodle site. Leaving them out saves huge amounts of disk space and makes the backup procedure much faster.

What data is not contained in course backups?

By selecting all the options when setting up the backup you can include almost all the data in the course. However you should be aware of the fact that some things are not backed up:

How do I fix backups that lack the student log and participation data?

In Site administration > Courses > Backups > General backup defaults, there is a setting for "Include logs." By default, this is off.

How do I fix backups that lack the student grade history?

In Site administration > Courses > Backups > General backup defaults, there is a setting for "Include histories." By default, this is off.

How can I backup or restore a very large course?

See Backup via CLI in Course backup and Restore via CLI in Course restore (new in 3.10 onwards).

The process ends with: "Error: An error occurred deleting old backup data". What should I do?

This part of the backup (or restore) procedure tries to delete old info, used in previous executions, performing the following tasks:

How are files governed in Moodle?

Access to files is governed the same way as the items that they attached to, which is what people expect. All files are now controlled by the settings in the Moodle interface, including roles and permissions.

What happens if a forum post is imported into another course?

If a forum post with attached files (eg images) is imported into another course, then the files move with it. Anyone in the new course will also see the files. This makes activities more portable and re-usable.

Can you re-use a file in Moodle?

It is now fast and easy to re-use files across Moodle. Using the file picker, a recently-used file may easily be chosen, or a file from any course a user has access to.

What is the world turning towards?

The world is turning towards better management of files and less "dumping" of files into disks. There are many repository solutions out there that focus on better management of files, with versioning, workflow, metadata and other features.

Backup options

Metacourse - If you are backing up the content of a metacourse, you may enable this option so that relations between the courses will be exported and the restore process will try to rebuild them in the destination server.

Backup of user data

Users with the capability moodle/backup:userinfo (by default only admins) have the following additional backup options:

Creative uses

The backup and restore processes can offer the teacher and administrators many creative solutions.