Duplicating a running environment
Hello everyone, If I have a working 3.12.00.000 environment installed from the Debian squeeze packages, what is the best way to make an exact, complete duplicate onto a 2nd machine? Can anyone send me or point me to some step-by-step instructions? Doesn't have to be complete details, just the general steps (i.e. install Koha from scratch from the packages, backup MySQL DB, copy "such-and-such" a directory from the 1st machine to the 2nd and modify "this" config. File and "that", etc.). Do I have to make sure that the same version of Koha is installed on the 2nd machine, and if so, how do I force apt-get to install the 3.12.00.000 version? Or can I copy the existing Koha directories over from the 1st server to the 2nd and not even do the install via the packages on the 2nd one? Hope this makes sense.trying to build a "test" environment AFTER already having the "production" environment up and running. Thanks, as always! Steve
This could easily be done if you are running a virtual machine, but reading between the lines a little I presume not? You might consider mastering an .iso of your running hard drive. Google instructions. Greg Lawson Network Administrator Rolling Hills Consolidated Library 1912 N. Belt Highway St. Joseph, MO 64506 ---------------------------------------- On 10/04/2013 05:23 PM, Steven Nickerson wrote:
Hello everyone,
If I have a working 3.12.00.000 environment installed from the Debian squeeze packages, what is the best way to make an exact, complete duplicate onto a 2nd machine? Can anyone send me or point me to some step-by-step instructions? Doesn't have to be complete details, just the general steps (i.e. install Koha from scratch from the packages, backup MySQL DB, copy "such-and-such" a directory from the 1st machine to the 2nd and modify "this" config. File and "that", etc.). Do I have to make sure that the same version of Koha is installed on the 2nd machine, and if so, how do I force apt-get to install the 3.12.00.000 version? Or can I copy the existing Koha directories over from the 1st server to the 2nd and not even do the install via the packages on the 2nd one?
Hope this makes sense.trying to build a "test" environment AFTER already having the "production" environment up and running.
Thanks, as always!
Steve
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
--
One option you may try is to install Webmin on both machines. Then on the machine that you want to duplicate log into Webmin and Backup Database. Select all Tables. Then backup. Please note where the resultant .sql file is saved (I usually use the Desktop). Copy this .sql file on a flash drive. On the second machine where you want to duplicate your Koha installation, log into Webmin and this time choose Execute SQL. Choose Run SQL From File. Choose the file on flash drive (or any media you used to save file) and EXECUTE (please note; choose the appropriate character set) Depending on the size of the file this may take some time. If all goes well you should have a neat duplicate of your Koha installation with all patron records, circulation etc. I have used this method several times and it works like a charm all the time, not very technical I am afraid but works for me. On 4 October 2013 22:58, glaws <glawson@rhcl.org> wrote:
This could easily be done if you are running a virtual machine, but reading between the lines a little I presume not?
You might consider mastering an .iso of your running hard drive. Google instructions.
Greg Lawson Network Administrator Rolling Hills Consolidated Library 1912 N. Belt Highway St. Joseph, MO 64506 ----------------------------------------
On 10/04/2013 05:23 PM, Steven Nickerson wrote:
Hello everyone,
If I have a working 3.12.00.000 environment installed from the Debian squeeze packages, what is the best way to make an exact, complete duplicate onto a 2nd machine? Can anyone send me or point me to some step-by-step instructions? Doesn't have to be complete details, just the general steps (i.e. install Koha from scratch from the packages, backup MySQL DB, copy "such-and-such" a directory from the 1st machine to the 2nd and modify "this" config. File and "that", etc.). Do I have to make sure that the same version of Koha is installed on the 2nd machine, and if so, how do I force apt-get to install the 3.12.00.000 version? Or can I copy the existing Koha directories over from the 1st server to the 2nd and not even do the install via the packages on the 2nd one?
Hope this makes sense.trying to build a "test" environment AFTER already having the "production" environment up and running.
Thanks, as always!
Steve
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Charles Lwanga College of Education, P. O. Box 660193, Monze, ZAMBIA. Mobile: +26 0979 869471 SKYPE: Libsitali
Steve On Fri, Oct 4, 2013 at 6:23 PM, Steven Nickerson <snicker1@maine.rr.com>wrote:
Hello everyone,
If I have a working 3.12.00.000 environment installed from the Debian squeeze packages, what is the best way to make an exact, complete duplicate onto a 2nd machine? Can anyone send me or point me to some step-by-step instructions? Doesn't have to be complete details, just the general steps (i.e. install Koha from scratch from the packages, backup MySQL DB, copy "such-and-such" a directory from the 1st machine to the 2nd and modify "this" config. File and "that", etc.). Do I have to make sure that the same version of Koha is installed on the 2nd machine, and if so, how do I force apt-get to install the 3.12.00.000 version? Or can I copy the existing Koha directories over from the 1st server to the 2nd and not even do the install via the packages on the 2nd one?
I'm not sure you'll be able to get 3.12.00 installed using packages, due to the absence of 3.12.0 packages on the repo. If you had the .deb package (you might have it in /var/cache/apt/...) you could simply do: $ sudo dpkg -i path/to/the.deb You should then create an instance named the same as in the production server, and then overwrite its configuration files in /etc/koha/sites/your-instance Also, if you tweaked some other files, make them reflect those changes. The last step would be to DROP the newly created database, and load it again using a dump from the production server. Remeber you can create a backup of the database and configs on the production server running: $ sudo koha-dump your-instance In fact, there's a koha-restore command you could do some research on. BTW: I think you should always have the latest release installed, for instance there was a security release a while ago so you are not covered from that vulnerability. Upgrading is easy as issuing: $ sudo apt-get update ; sudo apt-get upgrade (and you wont have to bother about installing the old-no-available version). Regards To+ -- Tomás Cohen Arazi Prosecretaría de Informática Universidad Nacional de Córdoba ✆ +54 351 4333190 ext 13168 GPG: B76C 6E7C 2D80 551A C765 E225 0A27 2EA1 B2F3 C15F
participants (4)
-
Chrispin Simasiku Sitali -
glaws -
Steven Nickerson -
Tomas Cohen Arazi