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

Automated backups with external storage fill trashdir

    XMLWordPrintable

Details

    Description

      The current backup code copies the temporary zip file to the file pool, and depending on external storage settings will then copy to this location and then potentially delete the file pool copy.

      Deleting the filepool backup copy means this is sent into trashdir, which on large sites where many backups run at once can cause a huge amount of additional disk usage before the trashdir is cleared. Additionally, the additional disk operations cause the whole backup process to take much longer than it should as there is twice the work involved.

      This should be changed, so that in the case where automated course backups should only be put in an external storage location they are put there directly instead of first running past the filepool and fillingtrashdir.

      Somewhat ugly patch for this incoming - there might be a better way to handle this?

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              tlevi Tony Levi
              Aparup Banerjee Aparup Banerjee
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Jason Fowler Jason Fowler
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Matteo Scaramuccia, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              12 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Jul/12