• Repository export script

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #18604  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.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.