Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-12282 Moodle 3.6 QA
  3. MDLQA-12845

CLONE - An admin can specify whether to skip courses that have not been modified since the last automatic backup

    XMLWordPrintable

    Details

      Description

      Note: This test requires a test install in order to be able to run a CLI script.

      1. Log in as an administrator.
      2. Create a test course,'course1'.
      3. Go to Site administration > Courses > Backups > Automated backup setup.
      4. Ensure under Automated backup setup, Active (backup_auto_active) is set to Enabled.
      5. Ensure under Automated backup setup, Skip courses not modified since previous backup (backup_auto_skip_modif_prev) is checked (enabled).
      6. In your site's wwwroot, run: php admin/cli/automated_backups.php
      7. Verify that the backup runs to completion, and includes the following in the output: "Backing up course44...". This means the course has been backed up.
      8. Again, in your site's wwwroot, run: php admin/cli/automated_backups.php
      9. Verify that the execution runs to completion, but includes the following output: "Skipping course1 (Not modified since previous backup)". This means that the logging of the previous backup is not being treated as a modification to the course (so the fix is working).
      10. Return to the course (course1) you set up earlier, add any activity or resource to the course, so that the course has been modified.
      11. Again, in your site's wwwroot, run: php admin/cli/automated_backups.php.
      12. Verify that the backup runs to completion, and again includes "Backing up course44..." in the output. This confirms the fix doesn't stop backups occurring when there are changes to the course.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: