Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-18925 Moodle 4.5 QA
  3. MDLQA-19052

CLONE - Backup and restore activity with files references

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Critical Critical
    • Moodle 4.5
    • Moodle 4.5
    • Backup
    • None

      Prerequisites

      1. Log in as admin and go to Site administration > Plugins > Repositories > Common repository settings.
      2. Enable Legacy course files in new courses  (legacyfilesinnewcourses) checkbox and Save changes.
      3. Go to the course settings, set Legacy course files setting to Yes and save changes.
      4. In the course that you enabled 'Legacy course files,' go to 'Administration > Course administration > Legacy course files' and upload files here.
      5. Add several files to your private files area, course legacy files, and a folder activity, including images.
      6. Create an activity module, insert into the description images from pre-requisite #4 as alias/shortcuts by selecting Link to the file.
      7. Create a new folder resource and add files from pre-requisite #3 as alias/shortcuts by selecting Link to the file.
      How to make sure that the file is a reference:
      • If the file is in filearea (i.e., file/folder resource), when you edit the filearea, the "shortcut" icon is displayed near the file. When you click on the file, the information window shows the source location. If the file is an embedded image, see below.
      • If you edit the filearea that has the source file (user private files or course legacy files), the source file has the "link" icon. When you click on the file, the information window shows the list of aliases/shortcuts in the system.
      • (double check) If you edit the filearea with the source and upload another file with the same name as the source and choose to overwrite, all alias/shortcuts will now show the new file (don't forget to save changes before checking!)

      Duplicating activities in the same course

      1. Duplicate activities and resources created in pre-requisites #5 and #6.
      2. Make sure that all files are still references.

      Recovering activities in the same course

      1. Backup the activities and resources created in pre-requisites #5 and #6.
      2. Remove the activities and resources.
      3. Restore from the backup into the same course.
      4. Make sure that all files are still references.

      Restoring into another course

      1. Backup the activities and resources created in pre-requisites #5 and #6.
      2. Restore from the backup into another course.
      3. Make sure that all files are still references.

      Restoring as a second user

      1. Backup the activities and resources created in pre-requisites #5 and #6.
      2. Log in as another user (teacher/admin).
      3. Restore from the backup into the same course.
      4. Make sure that all files are still references.

      Restoring after source files are deleted

      1. Backup the activities and resources created in pre-requisites #5 and #6.
      2. Remove sources in private files and course legacy files.
      3. Restore from the backup.
      4. Verify that you receive warnings about unreachable sources and you can see the human-readable description of where the source was originally located.
      5. Verify that the referencing files are not present anymore in file areas. References to images/video from inside the text editor become broken links.

      Restoring after source files are updated

      1. Backup the activities and resources created in pre-requisites #5 and #6.
      2. Replace sources in private files and course legacy files with new versions (content must be different).
      3. Restore activities/resources from the backup.
      4. Make sure files are present and are valid references to the new files.

        1. image-2024-09-24-09-44-10-651.png
          image-2024-09-24-09-44-10-651.png
          25 kB
        2. image-2024-09-24-09-44-50-711.png
          image-2024-09-24-09-44-50-711.png
          30 kB
        3. image-2024-09-24-09-45-54-816.png
          image-2024-09-24-09-45-54-816.png
          14 kB
        4. image-2024-09-24-09-47-43-730.png
          image-2024-09-24-09-47-43-730.png
          28 kB
        5. image-2024-09-24-09-50-06-817.png
          image-2024-09-24-09-50-06-817.png
          35 kB
        6. image-2024-09-24-10-00-10-344.png
          image-2024-09-24-10-00-10-344.png
          38 kB
        7. image-2024-09-24-10-00-44-457.png
          image-2024-09-24-10-00-44-457.png
          6 kB
        8. image-2024-09-24-10-06-27-337.png
          image-2024-09-24-10-06-27-337.png
          24 kB
        9. image-2024-09-24-10-16-13-173.png
          image-2024-09-24-10-16-13-173.png
          6 kB
        10. image-2024-09-24-10-37-46-560.png
          image-2024-09-24-10-37-46-560.png
          23 kB
        11. image-2024-09-24-10-43-11-819.png
          image-2024-09-24-10-43-11-819.png
          12 kB
        12. image-2024-09-24-10-43-22-868.png
          image-2024-09-24-10-43-22-868.png
          19 kB
        13. image-2024-09-24-10-44-04-406.png
          image-2024-09-24-10-44-04-406.png
          17 kB
        14. image-2024-09-24-10-44-32-260.png
          image-2024-09-24-10-44-32-260.png
          12 kB
        15. image-2024-09-24-10-49-29-918.png
          image-2024-09-24-10-49-29-918.png
          17 kB
        16. image-2024-09-24-10-50-23-036.png
          image-2024-09-24-10-50-23-036.png
          21 kB
        17. image-2024-09-24-10-54-26-912.png
          image-2024-09-24-10-54-26-912.png
          28 kB
        18. image-2024-09-24-10-54-38-749.png
          image-2024-09-24-10-54-38-749.png
          3 kB
        19. image-2024-09-24-10-55-23-017.png
          image-2024-09-24-10-55-23-017.png
          28 kB
        20. image-2024-09-24-10-55-50-880.png
          image-2024-09-24-10-55-50-880.png
          12 kB
        21. image-2024-09-24-11-11-12-506.png
          image-2024-09-24-11-11-12-506.png
          50 kB
        22. image-2024-09-24-11-12-48-871.png
          image-2024-09-24-11-12-48-871.png
          22 kB
        23. image-2024-10-01-14-45-10-033.png
          image-2024-10-01-14-45-10-033.png
          429 kB
        24. image-2024-10-01-14-45-26-821.png
          image-2024-10-01-14-45-26-821.png
          279 kB
        25. image-2024-10-01-14-47-24-578.png
          image-2024-10-01-14-47-24-578.png
          373 kB
        26. image-2024-10-01-14-48-05-161.png
          image-2024-10-01-14-48-05-161.png
          10 kB
        27. image-2024-10-01-14-48-14-398.png
          image-2024-10-01-14-48-14-398.png
          17 kB
        28. image-2024-10-01-14-49-27-329.png
          image-2024-10-01-14-49-27-329.png
          219 kB
        29. MDLQA-19052 works.png
          MDLQA-19052 works.png
          43 kB
        30. Private_1.png
          Private_1.png
          4 kB
        31. Private_1-1.png
          Private_1-1.png
          3 kB

            lsansone Luiggi Sansonetti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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