Git Product home page Git Product logo

clonecategory's Introduction

clone category

a plugin to perform a backup/restore of every course in a category to a newly speicifed category, modifying some properties as you go.

Installation

Put into your /local/ plugins folder and hit up the site notifications as admin

or cd ./local && git clone https://github.com/frumbert/clonecategory.git clonecategory

Usage

First, some assumptions.

  1. Your categories use IDNUMBERs. These will be used as a suffix to the cloned course shortnames.
  2. Your courses use shortnames that fit the format XXXXX_YYYYY where the segments are separated by an underscore.
  3. Cloned courses will have a new shortname consisting of the XXXXX part from the source course, plus underscore, plus the IDNUMBER of the destination category.
  4. Cloned courses will have their startdate and enddate set.

So, how this works:

  1. Be the moodle administrator.
  2. Navigate to your admin > local plugins > Clone Category
  3. Select the source category, and destination category. You can optionally create the destination category by entering both the NAME and IDNUMBER (both must be entered to create a category, which will be created underneath the Desination Parent Category)
  4. Set the course start and end dates. The default dates are today and three months from today. You'll probably want to change this.
  5. Press the Clone Courses button, and then go make yourself a hot beverage or take a long stroll. This process can take many minutes to hours, depending on your source category size

Notes

If debugging is turned on, you'll see some output logs once the process completes showing you memory usage and cpu cycles per backup etc.

Licence

GPL3, same as Moodle

clonecategory's People

Contributors

frumbert avatar

Watchers

Pavel Pisklakov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.