Page 1 of 1

Repository export script

PostPosted:Thu Oct 04, 2012 8:17 am
by Rudolf21
Hi there!

I'd like to use a bsh script to automatically execute the repository export function and backup all documents/folders. So far, I found the method "exportDocuments".
Could you please explain me the difference between the two parameters fldPath and fs?
Also I do not understand the last two parameters Writer and InfoDecorator.

My progress so far:
Code: Select all
import com.openkm.core.*;
import com.openkm.util.impexp.*;

String token = JcrSessionManager.getInstance().getSystemToken();

RepositoryExporter.exportDocuments(token, "/opt/openkm/backup", "/okm:root/", true, Writer out, InfoDecorator deco);
Thanks in advance.

Re: Repository export script

PostPosted:Thu Oct 04, 2012 5:20 pm
by jllort
Have you take a look here http://doxygen.openkm.com/5.1.x/db/df6/ ... orter.html ?
fldPath is openkm path second is a File ( file system, File folder = new File(/home/openkm/export/"); )