[Koha] New documents on kohadocs.org

Zeki Celikbas celikbas at itu.edu.tr
Mon Dec 27 21:38:34 NZDT 2004


Hi Stephen

> Two new documents have been loaded on http://www.kohadocs.org: 
> "Updating Koha" and "Backups and Restoring," both by Joshua Ferraro. 

I was using a little script to backup koha's database it is similar to yours at documentation. I 
was working it as a cron job every evening at 8 o'clock automatically. But because of it has 
some sensitive information (login name and passwords) I've protect it with standard linux 
autoration with user and access limits here is details:

user: kohaadmin
access: chmod 600 backup_script
cron: 8 o'clock at evening

--------------------------------------------------------------------------------------------------
#!/bin/bash
# koha's back-up cron script

BACKUP=koha`date +%y%m%d`
mysqldump --add-drop-table -uXXX -pXXX Koha >/var/backup/$BACKUP
ncftpput -V -u USER -p XXX 160.75.14.95 Koha /var/backup/$BACKUP
---------------------------------------------------------------------------------------------------

This script is generating a copy of whole koha database in /var/backup directory on a file 
named a file initial koha and continued year+moth+day for example: 

koha041221
koha041222
koha041223

This means a file for every day. But you can configure this period as you want.

Then for a strong backup strategy, script is copying same backup file to another machine 
with command ncftpput. But this was an old way now it is more useful and secure to use 
scp command as you document.

Best regards.



Zeki Celikbas
Librarian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Istanbul Technical University         e:celikbas at itu.edu.tr
Faculty of Aero. &  Astro.               w:http://www2.itu.edu.tr/~celikbas
34469 Maslak Istanbul Turkey       t:(212)2853108 f: (212)2853139
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20041227/f6aebe88/attachment-0001.htm


More information about the Koha mailing list