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

Automated backup executing 2 days in a row

    XMLWordPrintable

Details

    • MySQL
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • MDL-29470-master
    • Hide

      Test #1

      1. Go to Settings > Site administration > Courses > Backup > Automated backup setup
      2. Enable it, and schedule it for the same weekday than today only, at 17:00 (if today's Wednesday, only tick Wednesday)
      3. Run the cron and look for 'complete - next execution: ...'
      4. Make sure the date is not set for tomorrow, but for a week later

      (If cron does not output 'complete - next execution...' set 'nextstarttime' to 0 for one row in mdl_backup_courses)

      Test #2

      1. Go to Settings > Site administration > Courses > Backup > Automated backup setup
      2. Enable it. Set weekdays to (Mon, Tue, Wed, Thu, Fri) at 17:00
      3. Enable your PHPUnit environment and run `phpunit lib/tests/backup_test.php`
      4. Make sure the test passes
      5. Go back to the automated backup settings and make sure they didn't change
      Show
      Test #1 Go to Settings > Site administration > Courses > Backup > Automated backup setup Enable it, and schedule it for the same weekday than today only, at 17:00 (if today's Wednesday, only tick Wednesday) Run the cron and look for 'complete - next execution: ...' Make sure the date is not set for tomorrow, but for a week later (If cron does not output 'complete - next execution...' set 'nextstarttime' to 0 for one row in mdl_backup_courses) Test #2 Go to Settings > Site administration > Courses > Backup > Automated backup setup Enable it. Set weekdays to (Mon, Tue, Wed, Thu, Fri) at 17:00 Enable your PHPUnit environment and run `phpunit lib/tests/backup_test.php` Make sure the test passes Go back to the automated backup settings and make sure they didn't change

    Description

      We've selected so that automated backup executes every Tuesday and Friday at 11pm. For some reason it executes on Tuesday, Wednesday, Friday, and Saturday at 11pm, or basically it's executing on the next day where it's scheduled as well.

      The config in the database appears to be correct. Meaning the backup_auto_weekdays is set to 0010010 and te time is set to 23.

      I will post what I suspect to be the problem below.

      Attachments

        Issue Links

          Activity

            People

              fred Frédéric Massart
              dimasa Dimas Ariawan
              Andrew Davis Andrew Davis
              Sam Hemelryk Sam Hemelryk
              Adrian Greeve Adrian Greeve
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Sep/12