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

Moodle Backup (Automated Backup File Names)

    Details

    • Database:
      MySQL
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-28657-master

      Description

      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?

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  30 Vote for this issue
                  Watchers:
                  12 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    14/May/12