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

Courses backed up from version 1.9.1+ (build20080521) will not restore in version 1.9+

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.1
    • Fix Version/s: 1.9.3
    • Component/s: Backup
    • Labels:
      None
    • Environment:
      Our Moodle installation is on a Linux server php5.1.6, the others are also on Linux servers (php 5.2.6)
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Courses backed up from Moodle 1.9.1.+ will only restore in other 1.9.1+ installations and not in 1.9. I attached the error message and an empty test course. Prior to 1.9.1+ there has never been a problem.

        Gliffy Diagrams

        1. restorefail.gif
          44 kB

          Activity

          Hide
          howardsmiller Howard Miller added a comment -

          Just a thought... I was under the impression that backup and restore was not guaranteed to works "backwards" (i.e. a new version of Moodle to an older). It's a bit unfortunate, but any fix would now be in 1.9.2 and you'd have to upgrade anyway. So, in short, the only solution is to upgrade to 1.9.1+.

          Show
          howardsmiller Howard Miller added a comment - Just a thought... I was under the impression that backup and restore was not guaranteed to works "backwards" (i.e. a new version of Moodle to an older). It's a bit unfortunate, but any fix would now be in 1.9.2 and you'd have to upgrade anyway. So, in short, the only solution is to upgrade to 1.9.1+.
          Hide
          skodak Petr Skoda added a comment -

          hello,
          yes that is correct Howard - the backups can be restored only in newer versions. Usually the backups work inside stable branch too, but if there are some major bugs in backup/restore code we can not guarantee that (which was the case in 1.9.0)

          We are getting close to 1.9.2 these days, there might be some more backup related fixes this week. I would strongly recommend to upgrade any 1.9.x sites to 1.9.2 when it gets released.

          thanks for the report any way

          Show
          skodak Petr Skoda added a comment - hello, yes that is correct Howard - the backups can be restored only in newer versions. Usually the backups work inside stable branch too, but if there are some major bugs in backup/restore code we can not guarantee that (which was the case in 1.9.0) We are getting close to 1.9.2 these days, there might be some more backup related fixes this week. I would strongly recommend to upgrade any 1.9.x sites to 1.9.2 when it gets released. thanks for the report any way
          Hide
          jonathan Jonathan Harker added a comment -

          This is a bug that has been in the code since Wed Aug 15 22:43:25 2007 (fix to MDL-10383, committer: skodak). Please see the following git commit for a fix:
          http://git.catalyst.net.nz/gitweb?p=moodle-r2.git;a=commit;h=b76843ce34efb08bf0cca4791d7509de9c6455ff
          I will try to get this upstream shortly
          Jonathan Harker
          Catalyst IT

          Show
          jonathan Jonathan Harker added a comment - This is a bug that has been in the code since Wed Aug 15 22:43:25 2007 (fix to MDL-10383 , committer: skodak). Please see the following git commit for a fix: http://git.catalyst.net.nz/gitweb?p=moodle-r2.git;a=commit;h=b76843ce34efb08bf0cca4791d7509de9c6455ff I will try to get this upstream shortly Jonathan Harker Catalyst IT
          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          Wow! Silly typo! Fixing it now!

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - Wow! Silly typo! Fixing it now!
          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          Change applied now restore should work BC within the 1.9.x series. Thanks!

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - Change applied now restore should work BC within the 1.9.x series. Thanks!
          Hide
          skodak Petr Skoda added a comment -

          thanks

          Show
          skodak Petr Skoda added a comment - thanks

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Oct/08