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

Import and Backup/Restore - auto-purging of old backup*.zip files in backupdata folder

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.4
    • Fix Version/s: 1.6.5, 1.7.2, 1.8, 1.9
    • Component/s: Backup
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      My moodledata folder currently has 11G of backup*.zip files in the various courses' backupdata folders. I believe most of these are created by using import and I think that it would be good manners if import cleaned up after itself. In cases where teachers are backing up their sites, I think that it would be helpful to allow the administrator to control how many copies of the same course are maintained in the backupdata folder. In the Administration block there is a set of options for scheduled backups. One of them reads "How many recent backups for each course do you want to keep? (older ones will be deleted automatically)". I think that variable would be an ideal candidate for import and backup to use. If the number of backup*.zip files in the backupdata folder is greater than the value set for the number of recent backups to keep then delete the older ones until we have the number that we wish to keep. Whatever logic is used for the site scheduled backups IMHO should be brought over and applied to the individual course backups (including the zip files created by doing imports).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mjollnir Penny Leach
              Reporter:
              aborrow Anthony Borrow
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                30/Mar/07