Course Archiver

Admin tools ::: tool_coursearchiver
Maintained by Matthew Davidson
Archive and remove past courses with this handy tool that can also be used to send notifications to course teachers, hide courses in bulk, and has the ability for course teachers to opt out of the archiving.
Latest release:
561 sites
184 downloads
67 fans
Current versions available: 1

Course Archiver

This tool is used to search for courses, notify the course owners, and mass hide or archive (backup and remove) courses. The courses are stored with Moodle's backup file extension ".mbz". These files can then be manually found in the user defined folder and can be restored using Moodle's built in restore feature.

Install

copy the coursearchiver folder into the admin/tool folder.

Settings

Folder path

A folder created within the moodledata folder. The tool will create this folder, however it is recommended that the folder be created outside the moodledata folder, and a shortcut be placed in the moodledata folder.

Course Hide Email

This is the template email that will be sent to the owners of the selected courses to notify them that their course(s) will be hidden. There are two required variables in the email %to (name of the recipient) and %courses (a list of courses with mailto hyperlinks to notify the site administrator that the user wishes to opt out)

Course Archive Email

This is the template email that will be sent to the owners of the selected courses to notify them that their course(s) will be archived. There are two required variables in the email %to (name of the recipient) and %courses (a list of courses with mailto hyperlinks to notify the site administrator that the user wishes to opt out)

Course opt out persistence

A course can be opted out of the archival process and future archiver searches. This setting determines how many months the opt out with last.

Archive deletion delay

When an archived file is selected for deletion, the actual removal of the file will be delayed by x days.

Archive search limiter

Archives can get very large. This limits the amount of records returned to screen at one time.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4

Contributors

Matthew Davidson (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Wed, Sep 6, 2017, 1:34 PM
    Thank you for your answer! Was really quick! I am using the last version of firefox, will try to wait a bit more and also will try Chrome! Thanks again!
  • Wed, Sep 6, 2017, 1:43 PM
    So I tried Chrome and Internet Explorer, waited a couple of minutes, nothing happens...I guess it´s not the amount of courses, doesn´t matter if I have 80 courses or 2000 courses, maybe it´s the Moodle 3.3 version, thanks!
  • Wed, Sep 6, 2017, 8:20 PM
    @tamas erdelyi I have tested this with up to 3000 courses and sometimes it takes 10 seconds to select them all. (this depends on the system being used since it is all done on the client side). So if you are waiting "minutes" I tend to think that maybe the javascript is colliding with another modification of Moodle. If you open the browser console (F12), does anything pop up immediately when you click "Select All"?
  • Wed, Sep 6, 2017, 9:10 PM
    no nothing happens in the console neither sad I have installed the plugin with github, could that be the reason? or the moodle version itself?
    this is the output of the plugin overview:
    3.3.1 (Build: 2016090200)
    2017072100
  • Wed, Sep 6, 2017, 9:15 PM
    @tamas erdelyi That is the most recent version. Hmm. Just to cover all bases, are you using the standard en language pack?
  • Wed, Sep 6, 2017, 9:23 PM
    I am using german language pack, also tried to do the whole thing in english, same result
  • Wed, Sep 6, 2017, 9:32 PM
    @tamas erdelyi What theme are you running?
  • Wed, Sep 6, 2017, 9:42 PM
    ah okay this could be the reason, using the newest boost theme, gonna try clean, thanks!
  • Wed, Sep 6, 2017, 9:43 PM
    done!!! thank you so much!!! it works with clean!!! you saved my day ;) have a nice day!!!
  • Wed, Sep 6, 2017, 10:21 PM
    @tamas erdelyi If you download the latest from github, this should be fixed. Thank you for your report.
  • Wed, Sep 6, 2017, 11:05 PM
    yep it works now with boost! great thank you!
  • Wed, Sep 13, 2017, 2:56 AM
    I'm loving the potential of this plugin, but I do have a "wishlist" (in order of usefulness to me):

    1) I'd like to be able to locate and un-archive (or download) a course through the Moodle UI, so I wouldn't have to contact our I.T. department (Even though I'm Admin, I only have access to Moodle UI)
    2) I'd like to see who is "opting out" and what courses they are opting out.
    3) I'd like to be able to set an opt out time in months, instead of years.
    4) I'd like to be able to completely delete (and not even bother to archive) a course

    I also haven't figured out what the "Create Save Point" button is for.
  • Wed, Sep 13, 2017, 3:06 AM
    @Blair: Those are great ideas. As for the Create Save Point, this is the use case. You search for all courses created prior to 2015. You receive a list of 1000 courses. You go to send a notification email to the users of those courses. However there are 100 courses you KNOW won't get archived, so you manually deselect them so that they don't have emails sent. At this point you could make a save point. It will remember the list of 900 selected courses. After you have sent the notice, you allow people to opt out. Then you load back that save point and now see that the list of 900 courses is down to 800. You don't have to deselect those 100 courses that showed up in the original search, they are already removed from the list, and the 100 courses that got opted out are also not showing.
  • Wed, Sep 13, 2017, 3:11 AM
    @Blair #4 is already done. The DELETE course option was added in versions greater than 2017032400
  • Wed, Sep 13, 2017, 3:25 AM
    Thanks for that explanation, Matthew. I appreciate it! And regarding #4 -- I don't know how I didn't notice that! Sorry for that!
Please login to post comments