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:
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
Thanks in advance.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);