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

Implement a clean up script to process old backup files

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.6
    • 1.9.8
    • Backup
    • None
    • MOODLE_19_STABLE
    • 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

              samhemelryk Sam Hemelryk
              dougiamas Martin Dougiamas
              Nobody Nobody
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                25/Mar/10