• housekeeping / backup questions :)

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #12153  by raygrrr
 
Hi Experts,

I wanna know what's the best way to perform housekeeping on 'old documents', I read the document for how to backup repository on: http://wiki.openkm.com/index.php/Repository_backup

But we use mysql database so I think I need to backup mysql database at the same time as well right? otherwise I assume I can't just browser the 'backup' repoistory files right?

Many thanks,
Ray
 #12182  by jllort
 
Both Mysql and repository files must be done. If you only backup repository folder, you'll get blob files but you'll can not identify the name of each blob or metadata. You must backup both to have a complete repository backup and restore DMS information.
 #12220  by raygrrr
 
So I guess I need to stop the server then back up both repository and mysql database (or any other db), can this process be automated? coz I need to stop the server... :oops:

thxxxxxx mate
 #12249  by Catscratch
 
Simply write a command line script.

1. stop okm (shutdown.sh or /etc/init.d/openkm stop)
2. backup the repository (see the repository backup guide)
3. backup mysql, e.g.
Code: Select all
VARIABLE=$(date +"%d_%m_%Y_%H_%M_%S")
mysqldump --add-drop-database --add-drop-table --databases okm_app okm_repo -uUSERNAME -pPASSWORD > okm_backup_$VARIABLE.sql
4. start okm (run.sh or /etc/init.d/openkm start)

Then create a daily cronjob which runs this script.

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.