You are on page 1of 13

Integrated Library System (ILS) KOHA:

a guide to backup & restoration

Md. Rafiqur Rahman


Assistant Librarian (Electronic Resources)
E-mail: rafiqur83@gmail.com
Website: www.lib.ewubd.edu

Introduction to Backup
A backup is a copy of data. This copy can
include important parts of the database,
such as the control file and data files.
A backup is a safeguard against
unexpected data loss and application
errors.
If you lose the original data, then you can
reconstruct it by using a backup.

Types of backup
There are two main types of database
backups:
Full Backup
Incremental Backup

Types of backup Continu


Full Backup: A full backup is used to
create a copy of all data of entire database.
It requires a large amount of storage space.
A database can restored relatively quick &
easy way by using a full backup file.

Types of backup Continu


Incremental Backup: An Incremental
backup creates a copy of only the data that
have changed since the last backup.
The Incremental backup only contains
changes made to the database.
Incremental database requires small
amount of storage space. However it may
take more time to restore a database.

Backup of Koha ILS


Database Backup
Software and hard coded file including
image and other necessary files

Koha database Backup


First of all enter the machine as ROOT user,
then execute the following commands on the
terminal---backup:#mysqldump -u root -p[root_password]
[database_name] > /your location
path/dumpfilename.sql
mysqldump -u root -p[root_password] koha > /your location path/dumpfilename.sql

Koha database restore


restore:# mysql -u root -p[root_password]
[database_name] < /your
path/dumpfilename.sql
Koha database restore:
mysqldump -u root -p[root_password] koha < /your location path/dumpfilename.sql

Single table backup & restoration


Backup a single table from koha database:
#mysqldump u root p your password koha biblio > /your path/koha_biblio.sql

Restore a single table from koha database:


# mysql -uroot p your password koha biblio < /your path/koha_issues.sql

Backup and restore using tools


The common and most widely used tools for
MySQL database backup and restoration is
phpmyadmin
To backup: Log into the phpmyadmin
Select the database then export it

To Restore: Log into the phpmyadmin


Select the database then import it

Koha software file backup


To backup the koha software file, just copy
the koha main software folder at
/usr/share/koha and /etc/koha by using
the cp command like
cp R /usr/share/koha /your-location/
cp R /etc/koha /your-location/

Backup of GSDL
For backing up all collection, backup the
/greenstone/collect
cp R /usr/local/greenstone/collect /your
location
For backing up all interfaces and others
necessary file, just make a complete backup
the /greenstone
cp R /usr/local/greenstone /your
location

Thank You

You might also like