Moodle
  1. Moodle
  2. MDL-8651

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor 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
    • Rank:
      32963

      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).

        Issue Links

          Activity

          Hide
          Eloy Lafuente (stronk7) added a comment -

          Assigning to Penny after talking about it...

          Show
          Eloy Lafuente (stronk7) added a comment - Assigning to Penny after talking about it...
          Hide
          Penny Leach added a comment -

          fixed in 1.6, 1.7, 1.8 and head. phew!

          Show
          Penny Leach added a comment - fixed in 1.6, 1.7, 1.8 and head. phew!

            People

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

              Dates

              • Created:
                Updated:
                Resolved: