Page 2 of 2

Re: where can i find folders and files stored in OpenKM

PostPosted:Thu Mar 29, 2018 5:12 am
by rosario
@jllort,

You read my mind. Any chances someone else has already done a draft of such script? Any help would be greatly appreciated.

Thanks
Rosario

Re: where can i find folders and files stored in OpenKM

PostPosted:Fri Mar 30, 2018 9:21 am
by jllort
You should create step by step:
- First list changes during a day ( OKM_ACTIVITY and events CREATE, DELETE, UPDATE, RENAME and MOVE ) and LegacyDAO class https://github.com/openkm/document-mana ... cyDAO.java what helps you on doing the query from Java ( take a look at the method name executeQuery(String query) )
- When you have it it's almost done, simply you must execute the same steps into the file system in the same order

We will not doing the work for you, but we can guide on your code ( first must success on the first steps ) and when you got it going for the next ). If you share the code - incremental changes - we can review it, and suggets corrections etc..

Better than scripting in your case I suggest going for Crontab class https://docs.openkm.com/kcenter/view/ok ... b-job.html

Also I suggest download our development environment https://www.openkm.com/en/download.html

Re: How can i find path of upload bsh file stored and download in administrator OpenKM

PostPosted:Mon Jun 18, 2018 8:13 am
by kamal
hi im using SDK PHP used to get crontab result but i want to know where uploaded bsh file find stored location. then only i can download bsh file in my custom UI

Re: where can i find folders and files stored in OpenKM

PostPosted:Wed Jun 20, 2018 4:25 pm
by jllort
The bsh files are stored into the database ( look at the OKM_CRON_TAB table for binnary data ) -> you can download the bsh from the UI, there's a row icon for downloading in the crontab view.