Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-17933 Moodle 4.3 QA
  3. MDLQA-18085

CLONE - Backup and restore activity with files references

XMLWordPrintable

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

      Prerequisites

      1. Log in as admin/teacher.
      2. Enable course legacy files for the course.
      3. Add several files to your private files area, course legacy files, and a folder activity, including images.
      4. Create an activity module, insert into the description images from pre-requisite #3 as alias/shortcuts by selecting Link to the file.
      5. Create a new folder resource and add files from pre-requisite #3 as alias/shortcuts by selecting Link to the file.
      How to create legacy course files:
      • Enable the legacy course files repository plugin in Administration > Site administration > Plugins > Repositories > Common repository settings.
      • Check the legacyfilesinnewcourses box in the Manage repositories common settings (Settings > Site administration > Plugins > Repositories > Common repository settings), then click the 'Save changes' button.
      • Set 'Legacy course files' to Yes in the course settings.
      • In the course that you enabled 'Legacy course files,' go to 'Administration > Course administration > Legacy course files' and upload files here.
      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 #4 and #5.
      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 #4 and #5.
      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 #4 and #5.
      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 #4 and #5.
      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 #4 and #5.
      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 #4 and #5.
      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-2023-09-13-10-45-57-175.png
          35 kB
          Luiggi Sansonetti
        2. image-2023-09-13-10-47-04-913.png
          28 kB
          Luiggi Sansonetti
        3. image-2023-09-13-10-47-50-881.png
          6 kB
          Luiggi Sansonetti
        4. image-2023-09-13-10-50-44-583.png
          29 kB
          Luiggi Sansonetti
        5. image-2023-09-13-10-52-13-132.png
          27 kB
          Luiggi Sansonetti
        6. image-2023-09-13-10-54-14-487.png
          18 kB
          Luiggi Sansonetti
        7. image-2023-09-13-10-56-07-473.png
          9 kB
          Luiggi Sansonetti
        8. image-2023-09-13-10-56-46-500.png
          8 kB
          Luiggi Sansonetti
        9. image-2023-09-13-11-03-37-671.png
          22 kB
          Luiggi Sansonetti
        10. image-2023-09-13-11-04-21-970.png
          7 kB
          Luiggi Sansonetti
        11. image-2023-09-13-11-05-56-343.png
          28 kB
          Luiggi Sansonetti
        12. image-2023-09-13-11-07-22-205.png
          10 kB
          Luiggi Sansonetti
        13. image-2023-09-13-11-12-11-652.png
          4 kB
          Luiggi Sansonetti
        14. image-2023-09-13-11-13-38-755.png
          34 kB
          Luiggi Sansonetti
        15. image-2023-09-13-11-15-13-095.png
          8 kB
          Luiggi Sansonetti
        16. image-2023-09-13-11-17-25-058.png
          14 kB
          Luiggi Sansonetti
        17. image-2023-09-13-11-19-12-852.png
          33 kB
          Luiggi Sansonetti
        18. image-2023-09-13-11-19-32-596.png
          12 kB
          Luiggi Sansonetti
        19. image-2023-09-13-11-22-58-333.png
          10 kB
          Luiggi Sansonetti
        20. image-2023-09-13-11-23-12-250.png
          10 kB
          Luiggi Sansonetti
        21. image-2023-09-13-11-23-42-383.png
          9 kB
          Luiggi Sansonetti
        22. image-2023-09-13-11-25-08-148.png
          7 kB
          Luiggi Sansonetti
        23. image-2023-09-13-11-25-28-032.png
          7 kB
          Luiggi Sansonetti
        24. image-2023-09-13-11-26-04-699.png
          8 kB
          Luiggi Sansonetti

            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.