Improvements to Site Archive tool

Description

Currently, the Site Archive tool allows you to export individual sites and import sites individually or in a batch.

However, it requires that you have access to the filesystem in order to drop off or pick up these files.

These patch files create the following new features:

  • batch export sites via the Site Archive tool based on term

  • download zips of those exports via the Site Archive tool

  • Create a new course with a export zip

Screencast: http://screencast.com/t/mQUmh7Kb3

More info:

  • Only administrators can create the exports right now

  • Users' site creation permissions are still in effect - if you can't create a site, then you can't create one from an archive

  • Admins need some other process (cron) to clean up the archive storage folder

  • I've added a realm permission to control which users see this permission (which requires a kernel patch). No one gets it by default.

You'll need to make sure the following are set in sakai.properties:
archive.storage.path=${sakai.home}/archive/
archive.unzip.path=${sakai.home}/archive/

To test improved archive creation:

  • Go to Admin Workspace > Site Archive

  • Enter in the site id to export

  • Check 'Download Archives' and you should see a link to a zip file for this site - may take a few minutes if its a large site

  • You can also batch export by term, and those links will show up under 'Download Archives' too.

To test importing an archive:

  • Download a zip archive file

  • Go to Worksite Setup > New

  • Select 'create site from archive' (The realm permission 'site.import.archive' controls if you see this option.)

  • Select the type and semester

  • Go through the normal site creation workflow - should select all tools you will want content for

  • At the end, you will be asked to select a zip file from your computer to upload.

  • Create the site

Attachments

9
100% Done
Loading...

Activity

Show:

Matthew Jones June 29, 2015 at 3:27 PM

This currently does not work if you just enter an id only with the batch process, filed a new bug as

Hudson CI Server November 13, 2014 at 5:03 PM

SUCCESS: Integrated in sakai-trunk-java-1.7 #516 (See http://builds.sakaiproject.org:8080/job/sakai-trunk-java-1.7/516/)

Hudson CI Server June 20, 2014 at 6:28 PM

Integrated in sakai-trunk-java-1.7 #291 (See http://builds.sakaiproject.org:8080/job/sakai-trunk-java-1.7/291/)
fix display in archive tool (Revision 310322)

Result = SUCCESS

Sam Ottenhoff June 19, 2014 at 1:40 PM

trunk commit r310322

Nicola Monat-Jacobs May 8, 2014 at 5:47 PM

In further testing, it looks like we also need one more patch to archive. I'll attach it to this JIRA.

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created March 13, 2014 at 5:42 PM
Updated April 11, 2018 at 10:41 AM
Resolved June 19, 2014 at 1:40 PM