Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-20802

Automated course backups should be selective by category

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.9.5, 2.1.3, 2.2
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
      None
    • Environment:
      Linux
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE

      Description

      The automated (cron) course backups (backup_scheduled.php) fetch ALL courses at once to consider for backup. This causes an installation with several thousand courses (10,000+) to puke, due to all the rows in the recordset being converted into a single array variable. To reduce this risk somewhat, and make it more convenient for administrators, the automated backup should be enhanced to backup only selected categories of courses (comma separated cat ids held in a backup_config row?), and the 'get_records_list' routine used instead of 'get_records' when such a config value is not empty.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                6 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated: