[daisy] Mass Import/Export
Marc Portier
mpo at outerthought.org
Fri Jan 26 07:04:49 CST 2007
David Rideau wrote:
> Hi all,
>
> I saw, in daisy presentation, features about mass import/export but
> didn't find howto make it work in the doc.
> Perhaps I haven't search enough... :-)
> Could somebody give me URLs about theses features, and howto make it work ?
>
in the 2.0 under development there is an import-export feature to
transfer content from one Daisy repo to another.
http://cocoondev.org/daisydocs-2_0/impexp/333.html
> My needs are about mass-importing a complete NFS tree of MS-Word documents.
> Is there any tool I can use to do that automatically ?
>
You can automate this on top of the open API. This means that in
javascript or Java you can write your own import-script. This might
sound harder then it is in fact.
see:
* the api description:
(http://cocoondev.org/daisydocs-2_0/repository/interfaces/153.html)
* the api docs: (http://daisyapi.deininger.net/)
* a sample that imports content from a jsp-wiki
(http://svn.cocoondev.org/viewsvn/trunk/daisy/applications/jspwiki_import/)
and just ask here if you have more questions popping up while doing this
> Further need are about transfer all daisy repository from one
> test-platform to production-platform.
> If I dump the DB and tar-gz the repository, will it work ?
>
actually you can just move everything from one platform to another
(rather then install twice and only move the content)
but basically that is what you need to do:
- move db-data
- move the DAISY_DATA dir (more then just the blobstore)
depending on the version you are running on, you'll also find some
possible mismatches in the configs you move over (like absolute paths
and database-connection-properties)
as said on 2.0 you can just grab the imp/exp tool for this.
Hope this helps,
-marc=
--
Marc Portier http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at http://blogs.cocoondev.org/mpo/
mpo at outerthought.org mpo at apache.org
More information about the daisy
mailing list