Copying a WeBWorK Course
To copy homework sets from one WeBWorK course to another, follow the procedure below.
Go to the WeBWorK course with the content you want to copy from
Click on Sets Manager
Select Export and pick the sets you want to export (or select all) and click Export. The export function creates "set definition files" for each assignment. These .def files have a filename generated from the name of the homework set and contain the assignment name, dates, and problems. The files are saved in the
templates
directory of the course.Click on File Manager
Select all the .def files you want to copy (make sure you are in the templates folder)
Select Make archive and a .zip file will be created. This is an archive containing all the def files.
Download the .zip file to your computer by selecting the .tgz file and clicking the Download button
Go to the new course → File Manager
Upload the .zip file. Click Choose file → select the .zip file from your computer → click Upload. The .def files are now in your new course
Go to Sets Manager → Import → Multiple Sets → Select the .def files → Assign students as needed → click Import
Edit the assignment due dates and homework sets as needed.
Check that all the problems in each set render properly. Sometimes problems use additional files that are only located within a course's templates folder. If a problem is missing information it will list the location it expects the files to be. Copy the files from this location in the original course to the same location in the new course. See additional info below.
Copying additional problem data
If there are problems that have been added to the original course that are not part of the standard problem library, you may also need to copy the "local" folder within the templates directory.
Go to the original course
Go to the File Manager
Select the "local" folder.
Select Make archive and a .zip file will be created. This is an archive (like a zip file) containing the local files.
Download the .zip file to your computer by selecting the .zip file and clicking the Download button
Go to the new course → File Manager
Upload the .zip file. Click Choose file → select the .zip file → click Upload. The local files are now in your new course
Check to see if the homework sets now render properly.
Optional Clean up Step
If copied several times, your course may end up with lots of .def files in the templates directory. If you have already imported the homework sets, you can delete the extraneous .def files using the functions in the File Manager.
Ways you can contact ITS or find information:
ITS Support Portal: https://support.swarthmore.edu
Email: support@swarthmore.edu
Phone: x4357 (HELP) or 610-328-8513
Check out our remote resources at https://swatkb.atlassian.net/wiki/spaces/remote/overview
Check our homepage at https://swarthmore.edu/its