Page 1 of 1

Can admin export all files?

PostPosted:Fri May 02, 2008 6:33 am
by fengboallan
based on my understanding, files are stored in openkm in different name and data format.

1 if I want to backup the data, which folder should be backed up?

2 can administrator export all data. for example, openkm store many users\' files, can administrator export out all uses\'s data in one times? the admin will get the real file in its real name.

thank you

Bo

Re:Can admin export all files?

PostPosted:Fri May 02, 2008 7:45 am
by pavila
You don\'t need to export documents to perform a backup. By default, all repository data is stored in $JBOSS_HOME/repository, so you need to backup this directory. Before backup, stop JBoss.

Re:Can admin export all files?

PostPosted:Fri May 02, 2008 2:11 pm
by fengboallan
thanks, pavila

it means that we have to rely on the openkm for converting.

for example, if I missed one data file in repository

does it mean it will influence several kinds of original file?

thank you

Bo

Re:Can admin export all files?

PostPosted:Fri May 02, 2008 9:31 pm
by pavila
Sorry, I don\'t understand you. What do you mean with \"we have to rely on the openkm for converting\"?

Re:Can admin export all files?

PostPosted:Fri May 02, 2008 9:39 pm
by fengboallan
for example, if I want to export all data in the openKM.

I have to export them one by one and folder by folder.

all these transactions have to be done by OpenKm UI.

Can I have other way to export all data in one time?

thank you

Bo

Re:Can admin export all files?

PostPosted:Sat May 03, 2008 4:50 pm
by jllort
Well using OpenKM UI on tree view you\'ve got the menu option -> \"Export to file\", this option extracts a zip file with all folders and subfolders. The only limitation doing on this way is that we decide to not enable this option on okm:root ( because we had think this option to extract some information not for a total reporitory extraction , hope you can understand that is not a good idea to do it ).

The good way to export all repository to file system is using system menu options. When you\'re loogeed as system it\'ll appears a new menu option. There\'s a export / import.

For total exportation use:
on repository path write: /okm:root
on file system path write for example: /home/user or c:\\open\\export ( is a openkm server folder )

Hope it help\'s you.

Re:Can admin export all files?

PostPosted:Sun Oct 12, 2008 6:06 pm
by wiseman
Thanks for your reply.

Obviously, we would like to have this process automated so we could then have the database dump / archive backed up to an offsite location.

What commands can be invoked from console to generate this? ( stop JBoss / Open KM, dump/export, start ) How does the file size of the \'repository\' directory compare to the actual size of all of the documents contained in OpenKM without compression? Does the repository use compression? Can this directory simple be relocated to a new \"fresh install\" of OpenKM on a new server and the documents will immediately be recognized? If not, what must be done to import the backup to the new instance?

Thank you in advance!!

Re:Can admin export all files?

PostPosted:Mon Oct 13, 2008 10:27 am
by pavila
If you perform an repository export, you have to perform an import in the other OpenKM installation. The repository size can be a little big than the plain document export because of the stored metadata. An can be much bigger if you have many document versions.

Re:Can admin export all files?

PostPosted:Mon Oct 13, 2008 4:42 pm
by wiseman
Thank you for your reply - just a few quick questions:

1) Is there a way to initiate the EXPORT automatically from command prompt? We need it to export automatically every day or week so that we can back up offsite. We need this to be automated.

2) Does this mean that I can just set my repository type to be a \"filesystem\" and then just tell my backup utility to backup the drive/directory of the \'filesystem repository\' and the documents will be fully able to be backed up using standard backup methods?

3) Does the import remember security settings? Or must these be reapplied manually?

Thank you in advance!!

Re:Can admin export all files?

PostPosted:Wed Oct 15, 2008 8:39 am
by pavila
1) No, but if you want to perform a backup this is not the right method: export does not take care of document / folder permissions nor properties. If you want to backup the repository you have to stop JBoss and backup the $JBOSS_HOME/repository folder (if you have not changed the default configuration)

2) See 1

3) Import only get files from filesystem and put into the repository. Very similar to upload all documents individually (and creating folders if needed, of course). Export only recreates the repository structure in the filesystem. It does not take care of permissions. If you want to make a backup this is not the right method.