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

restore_backup cli command fails when CFG->backuptempdir is defined

XMLWordPrintable

    • 1
    • Team Hedgehog 2023 Sprint 4.1
    • Small

      The command defines the extract path as 

      $backupdir = "restore_" . uniqid();
      $path = $CFG->tempdir . DIRECTORY_SEPARATOR . "backup" . DIRECTORY_SEPARATOR . $backupdir;

      However, the restore code uses CFG->backuptempdir if its set and then fails to find the backup files.

            david.woloszyn@moodle.com David Woloszyn
            david.saylor@moodle.com David Saylor
            Huong Nguyen Huong Nguyen
            Ilya Tregubov Ilya Tregubov
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            1 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 25 minutes
                2h 25m

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