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

Automated backup setup

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8, 3.8.1, 3.8.2, 3.9
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
    • Affected Branches:
      MOODLE_38_STABLE, MOODLE_39_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-68046-master
    • Testing Instructions:
      Hide
      1. Create new course
      2. login as admin and enable the context freeze from Site administration \Development \ Experimental \ Experimental settings
      3. enable autobackup and check the "Skip categories and courses in context freeze mode checkbox"
      4. create new course
      5. mark this course as content freeze
      6. run to autobackup script
      7. verify that no autobackup create for courses how set as freeze or exist in category how set as freeze
      8. remove the freeze mode form the course and mark this course category as content freeze
      9. run to autobackup script
      10. verify that no autobackup create for courses how set as freeze or exist in category how set as freeze
      11. disable skip freeze content by unchecked the "Skip categories and courses in context freeze mode checkbox"
      12. run to autobackup script
      13. verify that the freeze courses as autobackup file available
      Show
      Create new course login as admin and enable the context freeze from Site administration \Development \ Experimental \ Experimental settings enable autobackup and check the "Skip categories and courses in context freeze mode checkbox" create new course mark this course as content freeze run to autobackup script verify that no autobackup create for courses how set as freeze or exist in category how set as freeze remove the freeze mode form the course and mark this course category as content freeze run to autobackup script verify that no autobackup create for courses how set as freeze or exist in category how set as freeze disable skip freeze content by unchecked the "Skip categories and courses in context freeze mode checkbox" run to autobackup script verify that the freeze courses as autobackup file available

      Description

      In a big installation of moodle with large amount of courses the automated backup process do not finish it's task, when the 'Skip hidden courses' is checked it still brings all the courses and checking the courses one by one and skip it if hidden, thus I changed the sql query of the courses and don't select the hidden courses in the query if the setting checked .

      I also added a setting option of skip categories and courses in context freeze mode that we don't want to check them.  

      so I improved automated backup script run time by lower the number of courses that should be checked for all others backup option.

        Attachments

          Activity

            People

            Assignee:
            avimoto Avi Levy
            Reporter:
            chenlevy Chen Levy
            Peer reviewer:
            Neill Magill Neill Magill
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: