KOHA
Backup i restore: Revision 17
MySQL baza iz komandne linijeBackup$ mysqldump --add-drop-table --single-transaction -u _root_ -p_password_ koha > 2008-11-11_koha.sql $ mysqldump --add-drop-table -u _root_ -p_password_ koha issues > 2008-11-11_koha.issues.sql http://www.nabble.com/Backing-up-3.0-to21076508.html Restore$ mysql -u _root_ -p_password_ koha < koha.sql $ mysql -u _root_ -p_password_ koha.issues < koha.issues.sql Virtualna mašinaNakon restora sa zfs-a treba napraviti slijedeća podešavanja: Pokrenuti screen u kojem će biti virtualna mašinadpavlin@mlin:~$ screen -S koha-upgrade Filesystemlvcreate -s /dev/vg/koha -L 80G -n koha-upgrade root@mlin:~# mount /dev/vg/koha-upgrade /virtual.clone/koha-upgrade/ root@mlin:~# df /virtual.clone/koha-upgrade/ Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/vg-koha--upgrade 82569904 56551456 26018448 69% /virtual.clone/koha-upgrade Start LXCroot@mlin:~# cd /srv/sysadmin-cookbook/recepies/lxc/ root@mlin:/srv/sysadmin-cookbook/recepies/lxc# ./ve2lxc.sh /virtual.clone/koha-upgrade/ 10.60.0.253 koha-upgrade Setup inside LXC
Koha's virtual LDAPZa detalje pogledajte LDAP Virtualni LDAP omogućava Kohi da isporučuje podatke preko LDAP-a drugim sustavima, u našem slučaju, kopirkama, vidi SafeQ integration. Drugi dio sustava je LDAP rewrite koji omogućava korištenje login@ffzg.hr bez modifikacija kohe.
upgradeUpgrade na r61 koji ima podršku za novu koha konfiguraciju i logine bez modifikacije kohe: # tunnel dpavlin@llin:~$ ssh -R 8022:localhost:22 10.60.0.252 dpavlin@koha-2010-01-06:~$ cd /srv/virtual-ldap/ dpavlin@koha-2010-01-06:/srv/virtual-ldap$ svn update A sql A sql/organizationalunit.sql A sql/group.sql A sql/hreduperson.sql U lib/LDAP/Virtual.pm U lib/LDAP/Koha.pm U bin/ldap-rewrite.pl Updated to revision 61. start server processdpavlin@koha-upgrade:~$ screen -S virtual-ldap Pokrenuti server (inače to radi monit, ali on je deinstaliran da ne gnjavi) dpavlin@koha-upgrade:~$ cd /srv/virtual-ldap/ dpavlin@koha-upgrade:/srv/virtual-ldap$ ./bin/virtual-ldap.pl LDAP server listening on port 1389 Čudan depdendency koji ne bi trebao postojati (kako radi na produkciji?) dpavlin@koha-upgrade:/srv/virtual-ldap$ ./bin/virtual-ldap.pl Can't locate Net/LDAP/Server.pm in @INC (@INC contains: lib /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at lib/LDAP/Virtual.pm line 12, <DATA> line 96. BEGIN failed--compilation aborted at lib/LDAP/Virtual.pm line 12, <DATA> line 96. Compilation failed in require at ./bin/virtual-ldap.pl line 7, <DATA> line 96. BEGIN failed--compilation aborted at ./bin/virtual-ldap.pl line 7, <DATA> line 96. dpavlin@koha-upgrade:/srv/virtual-ldap$ sudo apt-get install libnet-ldap-server-perl |