[Building Sakai] Web service or command line tool for site archiving
Steven Githens
swgithen at mtu.edu
Wed Oct 14 16:17:08 PDT 2009
Steve Swinsburg wrote:
> Hi Steve,
>
> Does the Sash command call the ArchiveService methods? If so I'd like
> to wrap this into an Axis webservice, can you point me in the right
> direction for where I should start digging through code?
It does. The source of the command is here:
https://source.sakaiproject.org/contrib/sakaiscript/sash/trunk/sash-api-shared/src/java/sash/script/bin/sitearchive.py
Pretty straight forward calls to org.sakaiproject.archive.api.ArchiveService
I doubt it's a publicly usable component (ie. checks permissions based
on your threads session) so you'll probably want to check for isSuperUser.
-s
>
> cheers,
> Steve
>
>
>
>
> On 15/10/2009, at 3:54 AM, Steven Githens wrote:
>
>> There is a site archive command for Sash. I'm still a bit sketchy
>> about people installing it on anything more than a dev box, but I'm
>> hoping to put in an IP filter, and default command whitelist for a soon
>> tag, which should make it a bit more safe to install on things.
>>
>> The usage text at the command line:
>>
>> [snip]
>> admin: sitearchive
>>
>> Import and Export Site Data
>>
>> sitearchive export siteid [siteid..]
>> Export any number of site ids provided on the command line. For
>> Sakai 2.5
>> these archive files are going to be created in tomcat/sakai/archive.
>> Note
>> however, this directory is configurable, so the destination may be
>> different
>> on your system.
>>
>> sitearchive import archiveurl siteid
>> Import an archive into a site. The archiveurl should be the name of
>> directory
>> containing the archive in tomcat/sakai/archive (or other directory if
>> your
>> local customization is different
>>
>>
>> admin:
>> [snip]
>>
>> ~steve
>>
>> Tom Hall wrote:
>>> Hi Everyone
>>>
>>> Can anyone point me in the right direction for a web service or command
>>> line program that can be used to perform site archiving?
>>>
>>> Thanks
>>>
>>> Tom
>>>
>>>
>>> _______________________________________________
>>> sakai-dev mailing list
>>> sakai-dev at collab.sakaiproject.org
>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>
>>> TO UNSUBSCRIBE: send email to
>>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>>> "unsubscribe"
>>>
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to
>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>
More information about the sakai-dev
mailing list