Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-21432 META: Backup & restore 2.0
  3. MDL-22153

post: clean old backup/restore files once they aren't necessary anymore

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.5
    • Component/s: Backup
    • Testing Instructions:
      Hide

      A) Verify that the 3 deleted files (backuplib.php, lib.php and restorelib.php) and the deleted dir (bb) aren't any more present under /backup.

      B) Perform the following operations and verify nothing fails about (lib|backuplib|restorelib) stuff:

      • Backup a course.
      • Restore a course.
      • Import contents from a course from another.
      • Duplicate an activity.
      • Enable automated backups (admin->courses->backup->automated", setting it to manual and perform an execution of admin/cli/automated_backups.php with web server credentials).
      • Verify that the "backup" admin report works without error. And show the results of the last execution. It doesn't matter if the status of any course is failed or unfinished or if that date is January 1970. Unrelated to this issue.
      • Create a book activity and export it using the "Generate IMS CP" option (activity administration block). It should lead to the generation & download of a .zip file containing an imsmanifest.xml file. Open it with any editor and verify it looks ok and does not contain any PHP error.
      Show
      A) Verify that the 3 deleted files (backuplib.php, lib.php and restorelib.php) and the deleted dir (bb) aren't any more present under /backup. B) Perform the following operations and verify nothing fails about (lib|backuplib|restorelib) stuff: Backup a course. Restore a course. Import contents from a course from another. Duplicate an activity. Enable automated backups (admin->courses->backup->automated", setting it to manual and perform an execution of admin/cli/automated_backups.php with web server credentials). Verify that the "backup" admin report works without error. And show the results of the last execution. It doesn't matter if the status of any course is failed or unfinished or if that date is January 1970. Unrelated to this issue. Create a book activity and export it using the "Generate IMS CP" option (activity administration block). It should lead to the generation & download of a .zip file containing an imsmanifest.xml file. Open it with any editor and verify it looks ok and does not contain any PHP error.
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      All the old backup/restore libs, old /backup directory....

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/13