Koha Data Migration | How to Import MARC file into Koha using Terminal

By Technical Digit

Koha Data Migration is very time consuming process, So you can import you Bibliographic Data into Koha Software by using Terminal Commands

In the process of Koha Data Migration, You can import .mrc file into koha directly using Terminal commands. Follow the steps below and run commands one by one carefully:

sudo su 
export PERL5LIB="/usr/share/koha/lib" 
export KOHA_CONF="/etc/koha/sites/library/koha-conf.xml"

Next, Move your .mrc file into folder where bulkmarcimport.pl is located by using following command.

mv sample.mrc /usr/share/koha/bin/migration_tools 
cd /usr/share/koha/bin/migration_tools 
perl bulkmarcimport.pl -framework BK -file sample.mrc 

It will take some time according to your file size.

(Below optional command, to delete all existing records and install new batch of marc file.)

perl bulkmarcimport.pl -d -file sample.mrc

Next Run Rebuild Zebra command:

sudo koha-rebuild-zebra -f -v library 


Learn How to Convert Excel File to Marc Format

This is all about Koha Data Migration.

Total Views: 1056