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 Homework Sets Editor
Select "Export" and pick the sets you want to export (or select all) and click "Take Action!". 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.Go to the File Manager
Select all the .def files you want to copy (make sure you are in the templates folder)
Select "Make archive" and a .tgz file will be created. This is an archive (like a zip file) containing all the def files.
Download the .tgz file to your computer by selecting the .tgz file and clicking the "Download" button
Go to the new course → File Manager
Upload the .tgz file. Click "Choose file" → select the .tgz file → Click Upload. The .def files are now in your new course
Go to "Homework Sets Editor" → Import → Multiple Sets → Select the .def files → Assign students as needed → Click "Take Action"
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 .tgz file will be created. This is an archive (like a zip file) containing the local files.
Download the .tgz file to your computer by selecting the .tgz file and clicking the "Download" button
Go to the new course → File Manager
Upload the .tgz file. Click "Choose file" → select the .tgz 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