Clear Backup Files

Administration tool ::: tool_clearbackupfiles
Maintained by Shubhendra Doiphode
Course backups can be an expensive task at times. It could take loads of unnecessary space and memory on the server. Administrators can clear backup files on the server to free the server space.
Latest release:
740 sites
337 downloads
20 fans
Current versions available: 2

package: tool_clearbackupfiles

This admin tool clears all backup files from the server. It is useful for freeing up space from dev and test servers once they are refreshed from production.

It also gives a report og how many mbz files were deleting clearing how much space.

Instructions:

the backup files can be deleted from /admin/tool/clearbackupfiles/index.php and you can find logs at /report/log/index.php. The default moodle events is used to create log entry.

The plugin also has a setting to enter number of days and associated scheduled task to do the cleanup automatically.

Screenshots

Screenshot #0

Contributors

Shubhendra Doiphode (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Erakutsi iruzkinak
  • Plugins bot
    ar., 2020(e)ko ots.ren 11(e)an, 22:20(e)tan
    Approval issue created: CONTRIB-7984
  • Pavel Lomov
    ar., 2021(e)ko urr.ren 12(e)an, 23:48(e)tan
    I get cli - error when start index.php :

    root@moodle:/etc# php -f /srv/www/htdocs/moodle/admin/tool/clearbackupfiles/index.php
    Command line scripts must define CLI_SCRIPT before requiring config.php

    moodle 3.6.5
  • Rodrigo Ribeiro
    al., 2022(e)ko abe.ren 5(e)an, 22:45(e)tan
    I did the cleaning through the web admin but it didn't release the space informed, even after running cron.
  • Nora Colazzo
    ar., 2022(e)ko abe.ren 6(e)an, 06:18(e)tan
    I'm just wondering if there have been any changes to this plugin so it works without the issues raised on this page?
  • Shubhendra Doiphode
    ar., 2022(e)ko abe.ren 6(e)an, 06:32(e)tan
    There has been no update to this plugin recently.

    Let me test this and address the above concerns.
  • Shubhendra Doiphode
    az., 2022(e)ko abe.ren 7(e)an, 07:44(e)tan
    I have added CLI_SCRIPT in index.php.
  • Shubhendra Doiphode
    az., 2022(e)ko abe.ren 7(e)an, 17:23(e)tan
    The other issue reported by Rodrigo should be resolved.

    I would suggest to create a issue on the repository for any future bugs.
    https://github.com/doiphode/moodle-tool_clearbackupfiles/issues

    Thanks
  • Pia Liersch
    og., 2024(e)ko mai.ren 23(e)an, 17:28(e)tan
    Interesting Plugin.
    But i missed some Features.
    * remove only Backups ago xxx Days (specified on settings page)
    * scheduled task
  • Shubhendra Doiphode
    al., 2024(e)ko eka.ren 10(e)an, 05:22(e)tan
    Hi Pia,

    Thank you for the suggestions.

    I have added the requested features in the updated version.

    Regards
  • Melvyn Gomez
    or., 2024(e)ko uzt.ren 26(e)an, 05:27(e)tan
    i had installed this plugin in Moodle 4.1.11 and i found that is deleting backups after i made, maybe 1 or 2 minutes after the backup creation and it was configured to delete backup from last 5 days, don't know if is a bug, but i ended uninstalling the plugin.
  • Shubhendra Doiphode
    og., 2024(e)ko abu.ren 1(e)an, 01:29(e)tan
    Hi Melvyn, the bug has now been fixed in the latest update.
Please login to post comments