Course Archiver

Administration tool ::: 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:
784 sites
686 downloads
85 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

  • Matthew Davidson
    Wed, 6 Sept 2017, 9:32 PM
    @tamas erdelyi What theme are you running?
  • Tom E
    Wed, 6 Sept 2017, 9:42 PM
    ah okay this could be the reason, using the newest boost theme, gonna try clean, thanks!
  • Tom E
    Wed, 6 Sept 2017, 9:43 PM
    done!!! thank you so much!!! it works with clean!!! you saved my day ;) have a nice day!!!
  • Matthew Davidson
    Wed, 6 Sept 2017, 10:21 PM
    @tamas erdelyi If you download the latest from github, this should be fixed. Thank you for your report.
  • Tom E
    Wed, 6 Sept 2017, 11:05 PM
    yep it works now with boost! great thank you!
  • Blair F.
    Wed, 13 Sept 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.
  • Matthew Davidson
    Wed, 13 Sept 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.
  • Matthew Davidson
    Wed, 13 Sept 2017, 3:11 AM
    @Blair #4 is already done. The DELETE course option was added in versions greater than 2017032400
  • Blair F.
    Wed, 13 Sept 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!
  • Tom E
    Thu, 21 Sept 2017, 7:47 PM
    Hi, I have also something on my "wishlist" but maybe I am missunderstand something:
    If I search for empty courses, the plugin also lists courses, where I have only one news forum, and inside the news forum there were some uploaded files, so finally the course was not empty, could you please also check those entries, is that possible? thanks a lot! tom
  • Matthew Davidson
    Thu, 21 Sept 2017, 8:08 PM
    @tamas erdelyi Currently there is a hard coded description of "empty" that I made up to fit my institutes needs. I designed it in a way to allow a customization eventually so that you could self describe what "empty" was. It is on my list. I will make a note to count forum posts.
  • Tom E
    Thu, 21 Sept 2017, 8:11 PM
    thanks a lot, that would be great!
  • Rahul Palyam
    Fri, 10 Nov 2017, 10:56 PM
    Hi, this is the plugin which i was looking for and am glad i finally found it (after trying to code this from scratch). I have a couple of questions below.
    1. When i select the 'Archive' button, currently it is removing the courses from the category. Isn't there an option just to archive the courses and not remove them?
    2. Possible can you tell how i can restore the courses after archiving from the plugin. I couldn't find any .mbz files in the default 'Restore' page of the category.. Thanks for creating the plugin though smile
  • Matthew Davidson
    Fri, 10 Nov 2017, 11:00 PM
    @Rahul When a course is archived, the course .mbz is placed in the moodledata folder under the name of the folder found in the CourseArchiver settings. By default it is called "CourseArchives". As of now, archiving is backing the course up and removing it. Maybe I can add an option to do just the backup in the future. Also, currently I do not have a method for searching and restoring those courses.
  • Rahul Palyam
    Tue, 5 Dec 2017, 4:32 PM
    @Matthew Thanks for your reply!!
    Cheers,
    Rahul.
Please login to post comments