Difference between revisions of "Koha:Upgrade"

From TSAS Library
Jump to: navigation, search
(Created page with "# Backup instance ## I do two: once through libstaff Tools -> Export Data for all records ## Then in terminal: koha-dump [instancename] ### This yields: DB to /var/spool/koha...")
 
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
### This yields:  DB to /var/spool/koha/[instancename]/[instancename-date].sql.gz
### This yields:  DB to /var/spool/koha/[instancename]/[instancename-date].sql.gz
### And: configs, logs to /var/spool/koha/[instancename]/[instancename-date].tar.gz
### And: configs, logs to /var/spool/koha/[instancename]/[instancename-date].tar.gz
# Follow directions here<ref>
# Follow directions here<ref>"Koha upgrade." [http://kohageek.blogspot.com/2013/05/how-to-upgrade-to-koha-312-in-koha-live.html ''Koha Geek''].</ref>
## <code>wget -q -O- http://debian.koha-community.org/koha/gpg.asc | sudo apt-key add -</code>
## <code>wget -q -O- http://debian.koha-community.org/koha/gpg.asc | sudo apt-key add -</code>
## <code>echo 'deb http://debian.koha-community.org/koha stable main' | sudo tee /etc/apt/sources.list.d/koha.list
## <code>echo 'deb http://debian.koha-community.org/koha stable main' | sudo tee /etc/apt/sources.list.d/koha.list deb http://debian.koha-community.org/koha stable main</code>
deb http://debian.koha-community.org/koha stable main</code>
## <code>sudo apt-get update</code>
## <code>sudo apt-get update</code>
## <code>sudo apt-get install koha-common</code>
## <code>sudo apt-get install koha-common</code>
## Keep .conf file. If comparing versions ("D"), use "q" to get out of menu
## Keep .conf file. If comparing versions ("D"), use "q" to get out of menu
## If <code>W: Operation was interrupted before it could finish</code>, <code>apt-get -f install</code> might clear it up.
## If <code>W: Operation was interrupted before it could finish</code>, <code>apt-get -f install</code> might<ref>"dist-upgrade interrupted, now what?" [https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=127587 ''RaspberryPi.org''].</ref> clear it up.
# Ensure indexer is running: <code>sudo koha-indexer --start [instancename]</code>
# Ensure indexer is running: <code>sudo koha-indexer --start [instancename]</code>



Latest revision as of 11:32, 2 April 2017

  1. Backup instance
    1. I do two: once through libstaff Tools -> Export Data for all records
    2. Then in terminal: koha-dump [instancename]
      1. This yields: DB to /var/spool/koha/[instancename]/[instancename-date].sql.gz
      2. And: configs, logs to /var/spool/koha/[instancename]/[instancename-date].tar.gz
  2. Follow directions here[1]
    1. wget -q -O- http://debian.koha-community.org/koha/gpg.asc | sudo apt-key add -
    2. echo 'deb http://debian.koha-community.org/koha stable main' | sudo tee /etc/apt/sources.list.d/koha.list deb http://debian.koha-community.org/koha stable main
    3. sudo apt-get update
    4. sudo apt-get install koha-common
    5. Keep .conf file. If comparing versions ("D"), use "q" to get out of menu
    6. If W: Operation was interrupted before it could finish, apt-get -f install might[2] clear it up.
  3. Ensure indexer is running: sudo koha-indexer --start [instancename]

References

  1. "Koha upgrade." Koha Geek.
  2. "dist-upgrade interrupted, now what?" RaspberryPi.org.