Moodle
  1. Moodle
  2. MDL-6489

Backup without user data doesn't save the structure of database

    Details

    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Rank:
      28346

      Description

      Backup without user data doesn't save the structure of database. With user data option saves the structure of database but also restores users what is not desired.

      In my opinion database backup without user data should save the structure and templates without records.

      Cheers
      Adam

        Activity

        Hide
        N Hansen added a comment -

        The same problem occurs when you import a database from one course to another. Even if you chose "yes" to course data, none of the database structure, i.e. fields and layout of them, is transferred over. Does the database template system fix this at all in 1.7 or 1.8?

        Show
        N Hansen added a comment - The same problem occurs when you import a database from one course to another. Even if you chose "yes" to course data, none of the database structure, i.e. fields and layout of them, is transferred over. Does the database template system fix this at all in 1.7 or 1.8?
        Hide
        N Hansen added a comment -

        Actually, I should correct myself. The templates are transferred, but the fields are not. It's odd, because the templates also refer to those fields that aren't transferred over.

        Show
        N Hansen added a comment - Actually, I should correct myself. The templates are transferred, but the fields are not. It's odd, because the templates also refer to those fields that aren't transferred over.
        Hide
        N Hansen added a comment -

        Another note, the CSS templates don't get transferred over though.

        Show
        N Hansen added a comment - Another note, the CSS templates don't get transferred over though.
        Hide
        Robert Allerstorfer added a comment -

        In Moodle 1.9 builds >= 20080410, you can export and import the data structure (fields) and all the templates within a "preset.zip" file, available in the "Preset" tab.

        Show
        Robert Allerstorfer added a comment - In Moodle 1.9 builds >= 20080410, you can export and import the data structure (fields) and all the templates within a "preset.zip" file, available in the "Preset" tab.
        Hide
        Eloy Lafuente (stronk7) added a comment -

        Was reviewing other database activity backup & restore bugs and arrived here.

        I've tested that both Moodle 1.8 and Moodle 1.9 are doing ok both in backup and restore, handling field definitions and templates properly, no matter if user data is included or no.

        This won't be backported to previous versions, so closing it as fixed for 1.8 and 1.9.

        Ciao

        Show
        Eloy Lafuente (stronk7) added a comment - Was reviewing other database activity backup & restore bugs and arrived here. I've tested that both Moodle 1.8 and Moodle 1.9 are doing ok both in backup and restore, handling field definitions and templates properly, no matter if user data is included or no. This won't be backported to previous versions, so closing it as fixed for 1.8 and 1.9. Ciao

          People

          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: