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

Moodle Backup (Automated Backup File Names)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.1.6, 2.2.3
    • 2.1.5, 2.2.2, 2.3
    • Backup
    • LAMP Stack
    • MySQL
    • MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • MDL-28657-master
    • Hide

      1. Turn on automated backups.
      2. Make sure "Use course name in backup filename" is set to "No" (default).
      3. Create a new course (Course A).
      4. Manually run automated backups. Verify that the backup filename for Course A uses the id.
      5. Change the "Use course name in backup filename" setting to "Yes."
      6. Create a new course (Course B).
      7. Manually run automated backups. Verify that the backup filename for Course B uses the shortname.

      Show
      1. Turn on automated backups. 2. Make sure "Use course name in backup filename" is set to "No" (default). 3. Create a new course (Course A). 4. Manually run automated backups. Verify that the backup filename for Course A uses the id. 5. Change the "Use course name in backup filename" setting to "Yes." 6. Create a new course (Course B). 7. Manually run automated backups. Verify that the backup filename for Course B uses the shortname.

      When backups are created automatically in Moodle 2.1, the files created are named:

      rw-rw-rw- 1 root root 27609 Aug 8 00:45 backup-moodle2-course-530-20110808-0045.mbz
      rw-rw-rw 1 root root 30671 Aug 8 00:45 backup-moodle2-course-541-20110808-0045.mbz
      rw-rw-rw 1 root root 243078 Aug 8 10:46 backup-moodle2-course-542-20110808-1046.mbz
      rw-rw-rw 1 root root 22009102 Aug 8 13:01 backup-moodle2-course-542-20110808-1301.mbz

      These names do not help us to locate a backup to restore from tape or allow a user to quickly find the backup they need when looking at the back end.

      Can you tell me where I can hack the code to change these file names to reflect the course short name?

            cfulton Charles Fulton
            leebrent Brent Lee (Inactive)
            Dan Poltawski Dan Poltawski
            Aparup Banerjee Aparup Banerjee
            Rajesh Taneja Rajesh Taneja
            Votes:
            30 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.