User Tools

Site Tools


documentazione_tecnica_server:gasistafelice.befair.it:migrazione_a_wheezy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
documentazione_tecnica_server:gasistafelice.befair.it:migrazione_a_wheezy [2014/01/17 23:00] kobedocumentazione_tecnica_server:gasistafelice.befair.it:migrazione_a_wheezy [2014/01/17 23:09] kobe
Line 13: Line 13:
   # apt-get upgrade   # apt-get upgrade
  
-Backup database:+Backup database (prima accedo all'utente postgres con ''su - postgres''):
  
-  # su - postgres 
   $ pg_dump -f /var/lib/postgresql/gf_deploy_20140117_before_wheezy_update.sql gf_deploy   $ pg_dump -f /var/lib/postgresql/gf_deploy_20140117_before_wheezy_update.sql gf_deploy
  
Line 44: Line 43:
 Crea il database nuovo su Postgres 9.1: Crea il database nuovo su Postgres 9.1:
  
-  # su - postgres 
   $ psql   $ psql
   =# CREATE ROLE gasdeploy WITH LOGIN PASSWORD 'mypassword';   =# CREATE ROLE gasdeploy WITH LOGIN PASSWORD 'mypassword';
Line 51: Line 49:
 Importa il vecchio database: Importa il vecchio database:
  
-  psql gf_deploy < /var/lib/postgresql/gf_deploy_20140117_before_wheezy_update.sql+  psql gf_deploy < /var/lib/postgresql/gf_deploy_20140117_before_wheezy_update.sql
  
 +Rimuovi il vecchio 8.4:
 +
 +  # apt-get remove postgresql-{,client-}8.4
  
 Rimuovi i vecchi pacchetti: Rimuovi i vecchi pacchetti: