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

Implement a clean up script to process old backup files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.6
    • Fix Version/s: 1.9.8
    • Component/s: Backup
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Ashely, not sure if you have time but you said you were working on it already

      Basically we need a basic shell/sed script to traverse all the sub directories of moodledata in a repeatable pattern, looking for backups, and then for each file:

      • Save the current working filename in a temp file somewhere (to enable resuming if something fails)
      • Make a backup of the file somewhere (just in case)
      • Unzip the file
      • Run a regexp on moodle.xml, removing password hashes
      • Zip up the file again

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              dougiamas Martin Dougiamas
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Mar/10