Admin tools: Course Archiver

tool_coursearchiver
Maintained by Picture of Matthew Davidson 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.
243 sites
418 downloads
39 fans

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 links that will notify the tool that the course will not show up in further actions for a set period of time)

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 links that will notify the tool that the course will not show up in further actions for a set period of time)

Opt Out Persistence

An amount in months for how long an opt out will be in effect.

Screenshots

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

Contributors

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

Comments RSS

Show comments
  • Picture of tamas erdelyi
    Thu, 21 Sep 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
  • Picture of Matthew Davidson
    Thu, 21 Sep 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.
  • Picture of tamas erdelyi
    Thu, 21 Sep 2017, 8:11 PM
    thanks a lot, that would be great!
  • Picture of 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
  • Picture of 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.
  • Picture of Rahul Palyam
    Tue, 5 Dec 2017, 4:32 PM
    @Matthew Thanks for your reply!!
    Cheers,
    Rahul.
  • Picture of Blair F.
    Thu, 12 Jul 2018, 12:33 AM
    Could the Folder Path point to a completely different server?
  • Picture of Matthew Davidson
    Thu, 12 Jul 2018, 12:35 AM
    @Blair F. On our setup, we have a network folder shortcut as the Course Archiver folder. That way it goes to a seperate server.
  • Picture of Blair F.
    Wed, 18 Jul 2018, 1:02 AM
    Thanks, Matthew. I'll talk to our I.T. guy about that possibility. At least we'd then be able to see a directory of files, if we needed to restore.
  • Picture of Jerry Lau
    Fri, 3 Aug 2018, 12:56 AM
    @Mathew.. Thank you for this plugin. Does the folder have to owned by apache? or root? etc.? We're planning to create a new storage platform and mount that as a shortcut in moodledata folder as opposed to creating one within moodledata (i.e.: not mkdir "afolder" within /moodledata folder. Would that work? Thanks
  • Picture of G J
    Wed, 3 Oct 2018, 11:12 PM
    When Opt-out email is sent, faculty receive "Access Denied" error when trying to opt out. It works when an admin opt out so I'm thinking its a permission thing. But what permission need to be giving for the teacher to opt out?
  • Picture of Matthew Davidson
    Wed, 3 Oct 2018, 11:15 PM
    @GJ Check what version you are running. That bug was fixed on version 2018081700.
  • Picture of G J
    Thu, 4 Oct 2018, 10:28 PM
    @Matthew (Build: 2016090200) (2018081700) Thats probably the issue. Will update. Thanks
  • Picture of G J
    Tue, 16 Oct 2018, 12:46 AM
    Is there a way to also check a log for the errors when a course not able to be archived? I'm successfully archiving courses that are put in manually in our Moodle system, however, the courses that are uploaded into Moodle through a flat file not archiving. I receive a message "processing complete" but then "errors: Course: .... could not be archived". I'm not sure why the archiving can't be successful.
  • Picture of Stefan Erlachner
    Thu, 22 Nov 2018, 3:15 PM
    Hi Matthew, nice work. Love the plugin.
    One thing that would be cool though, is to have the option to include sub-categories when filtering by category. Maybe you want to consider this as a new feature.
    Cheers and thanks!
1 2 3

Commenting temporarily disabled