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

Backup and restore options for course level content bank

XMLWordPrintable

    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • MDL-68314-master
    • Hide

      Prerequisites:

      • Two different Moodle sites with admin access.

      Test 1: Restore in a new course

      1. Log as admin
      2. Create a course named C1
      3. Go to Content bank link in C1 course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic)
      4. Click 'Upload' button to create a new content
      5. Upload helloworld.h5p file and Save changes
      6. Go to C1 course homepage
      7. Go to 'Backup' option in course cog menu
      8. Confirm 'Include content bank content' options is checked
      9. Click on 'Jump to final step'
      10. Confirm the backup file is succesfully created and click Continue
      11. Download the new *.mbz back file
      12. Click on the 'Restore' link of the just created backup file
      13. Click on Continue
      14. Select a category and click in Continue in 'Restore as a new course' section
      15. Confirm 'Include content bank content' options is checked
      16. Click on 'Next'
      17. Click on 'Next' using default settings
      18. Click on 'Perform restore'
      19. Confirm the course is restored succesfully and click in 'Continue'
      20. Go to Content bank link in the new course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic)
      21. Confirm 'helloworld.h5p' content is there
      22. Click on 'helloworld.h5p' content
      23. Confirm the image of the Earth is shown and there's no error

      Test 2: Restore in an existing course

      1. Create a course named C2
      2. Go to C1 course homepage
      3. Go to 'Restore' option in course cog menu
      4. Click on the 'Restore' link of backup file created in Test1
      5. Click on Continue
      6. Select 'C2' course in 'Restore into an existing course' section
      7. Confirm 'Include content bank content' options is checked
      8. Click on 'Next'
      9. Click on 'Next' using default settings
      10. Click on 'Perform restore'
      11. Confirm the course is restored succesfully and click in 'Continue'
      12. Go to Content bank link in 'C2' course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic)
      13. Confirm 'helloworld.h5p' content is there
      14. Click on 'helloworld.h5p' content
      15. Confirm the image of the Earth is shown and there's no error

      Test 3: Import course

      1. Create a course named C3
      2. Go to 'Import' option in course cog menu
      3. Select 'C1' course in 'Find a course to import data from' section
      4. Confirm 'Include content bank content' options is checked
      5. Click on 'Next'
      6. Click on 'Next' using default settings
      7. Click on 'Perform import'
      8. Confirm the course is imported succesfully and click in 'Continue'
      9. Go to Content bank link in 'C3' course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic)
      10. Confirm 'helloworld.h5p' content is there
      11. Click on 'helloworld.h5p' content
      12. Confirm the image of the Earth is shown and there's no error

      Test 4: Contents are not duplicated

      1. Go to 'C3' course
      2. Go to 'Import' option in course cog menu
      3. Select 'C1' course in 'Find a course to import data from' section
      4. Confirm 'Include content bank content' options is checked
      5. Click on 'Next'
      6. Click on 'Next' using default settings
      7. Click on 'Perform import'
      8. Confirm the course is imported succesfully and click in 'Continue'
      9. Go to Content bank link in 'C3' course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic)
      10. Confirm there is only one 'helloworld.h5p' content
      11. Click on 'helloworld.h5p' content
      12. Confirm the image of the Earth is shown and there's no error

      Test 5: A backup with no content bank content

      1. Go to 'C1' course
      2. Go to 'Backup' option in course cog menu
      3. Uncheck 'Include content bank content' options
      4. Click on 'Jump to final step'
      5. Confirm the backup file is succesfully created and click Continue
      6. Download the new *.mbz back file
      7. Log in as admin in a different empty Moodle instance
      8. Go to Site administration > Courses > Restore course
      9. Import the just downloaded backup file and click on 'Restore'
      10. Confirm 'Include content bank content' is not checked.
      11. Click on 'Continue'
      12. Select a category and click in Continue in 'Restore as a new course' section
      13. Confirm 'Include content bank content' is not checked.
      14. Click on 'Next'
      15. Click on 'Next' using default settings
      16. Click on 'Perform restore'
      17. Confirm the course is restored succesfully and click in 'Continue'
      18. Go to Content bank link in the new course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic)
      19. Confirm the content bank is empty

      Test 6: Recycle bin

      1. Go to Site administration > Courses > Manage courses and categories
      2. Delete C1 course
      3. Go to the 'Recycle bin' of the C1 course's category.
      4. Restore just deleted C1 course.
      5. Confirm the course is restored succesfully and click in 'Continue'
      6. Go to Content bank link in the new course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic)
      7. Confirm 'helloworld.h5p' content is there
      8. Click on 'helloworld.h5p' content
      9. Confirm the image of the Earth is shown and there's no error

      Test 7: A backup in a new site

      1. Go to a new empty Moodle site
      2. Log in as admin
      3. Go to Site administration > Courses > Restore course
      4. Import the backup file downloaded in Test 1 and click on 'Restore'
      5. Confirm 'Include content bank content' is checked.
      6. Click on 'Continue'
      7. Select a category and click in Continue in 'Restore as a new course' section
      8. Confirm 'Include content bank content' is checked.
      9. Click on 'Next'
      10. Click on 'Next' using default settings
      11. Click on 'Perform restore'
      12. Confirm the course is restored succesfully and click in 'Continue'
      13. Go to Content bank link in the new course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic)
      14. Confirm 'helloworld.h5p' content is there
      15. Click on 'helloworld.h5p' content
      16. Confirm the image of the Earth is shown and there's no error
      Show
      Prerequisites: Two different Moodle sites with admin access. Test 1: Restore in a new course Log as admin Create a course named C1 Go to Content bank link in C1 course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic) Click 'Upload' button to create a new content Upload helloworld.h5p file and Save changes Go to C1 course homepage Go to 'Backup' option in course cog menu Confirm 'Include content bank content' options is checked Click on 'Jump to final step' Confirm the backup file is succesfully created and click Continue Download the new *.mbz back file Click on the 'Restore' link of the just created backup file Click on Continue Select a category and click in Continue in 'Restore as a new course' section Confirm 'Include content bank content' options is checked Click on 'Next' Click on 'Next' using default settings Click on 'Perform restore' Confirm the course is restored succesfully and click in 'Continue' Go to Content bank link in the new course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic) Confirm 'helloworld.h5p' content is there Click on 'helloworld.h5p' content Confirm the image of the Earth is shown and there's no error Test 2: Restore in an existing course Create a course named C2 Go to C1 course homepage Go to 'Restore' option in course cog menu Click on the 'Restore' link of backup file created in Test1 Click on Continue Select 'C2' course in 'Restore into an existing course' section Confirm 'Include content bank content' options is checked Click on 'Next' Click on 'Next' using default settings Click on 'Perform restore' Confirm the course is restored succesfully and click in 'Continue' Go to Content bank link in 'C2' course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic) Confirm 'helloworld.h5p' content is there Click on 'helloworld.h5p' content Confirm the image of the Earth is shown and there's no error Test 3: Import course Create a course named C3 Go to 'Import' option in course cog menu Select 'C1' course in 'Find a course to import data from' section Confirm 'Include content bank content' options is checked Click on 'Next' Click on 'Next' using default settings Click on 'Perform import' Confirm the course is imported succesfully and click in 'Continue' Go to Content bank link in 'C3' course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic) Confirm 'helloworld.h5p' content is there Click on 'helloworld.h5p' content Confirm the image of the Earth is shown and there's no error Test 4: Contents are not duplicated Go to 'C3' course Go to 'Import' option in course cog menu Select 'C1' course in 'Find a course to import data from' section Confirm 'Include content bank content' options is checked Click on 'Next' Click on 'Next' using default settings Click on 'Perform import' Confirm the course is imported succesfully and click in 'Continue' Go to Content bank link in 'C3' course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic) Confirm there is only one 'helloworld.h5p' content Click on 'helloworld.h5p' content Confirm the image of the Earth is shown and there's no error Test 5: A backup with no content bank content Go to 'C1' course Go to 'Backup' option in course cog menu Uncheck 'Include content bank content' options Click on 'Jump to final step' Confirm the backup file is succesfully created and click Continue Download the new *.mbz back file Log in as admin in a different empty Moodle instance Go to Site administration > Courses > Restore course Import the just downloaded backup file and click on 'Restore' Confirm 'Include content bank content' is not checked. Click on 'Continue' Select a category and click in Continue in 'Restore as a new course' section Confirm 'Include content bank content' is not checked. Click on 'Next' Click on 'Next' using default settings Click on 'Perform restore' Confirm the course is restored succesfully and click in 'Continue' Go to Content bank link in the new course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic) Confirm the content bank is empty Test 6: Recycle bin Go to Site administration > Courses > Manage courses and categories Delete C1 course Go to the 'Recycle bin' of the C1 course's category. Restore just deleted C1 course. Confirm  the course is restored succesfully and click in 'Continue' Go to Content bank link in the new course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic) Confirm  'helloworld.h5p' content is there Click on 'helloworld.h5p' content Confirm  the image of the Earth is shown and there's no error Test 7: A backup in a new site Go to a new empty Moodle site Log in as admin Go to Site administration > Courses > Restore course Import the backup file downloaded in Test 1 and click on 'Restore' Confirm 'Include content bank content' is checked. Click on 'Continue' Select a category and click in Continue in 'Restore as a new course' section Confirm 'Include content bank content' is checked. Click on 'Next' Click on 'Next' using default settings Click on 'Perform restore' Confirm the course is restored succesfully and click in 'Continue' Go to Content bank link in the new course (link is in the drawer for Boost, in Navigation block -> Site pages for Classic) Confirm 'helloworld.h5p' content is there Click on 'helloworld.h5p' content Confirm the image of the Earth is shown and there's no error

      During course backup and restore process, content bank content should be backup and restored with the rest of the data. 

      Contents from other contexts' content banks picked as reference in course's activities/resources will be added to the backup file as a copy. So the relation between those contents and the content bank will be cut in the restored course.

        1. helloworld.h5p
          35 kB
        2. Screenshot_1.png
          Screenshot_1.png
          144 kB
        3. Screenshot_2.png
          Screenshot_2.png
          126 kB
        4. Screenshot_3.png
          Screenshot_3.png
          121 kB
        5. Screenshot_4.png
          Screenshot_4.png
          103 kB
        6. Screenshot_5.png
          Screenshot_5.png
          105 kB
        7. Screenshot_6.png
          Screenshot_6.png
          105 kB
        8. Screenshot_7.png
          Screenshot_7.png
          139 kB

            amaia Amaia Anabitarte
            amaia Amaia Anabitarte
            Carlos Escobedo Carlos Escobedo
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 6 hours, 26 minutes
                4d 6h 26m

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