root / pykota / trunk / initscripts / upgrade-1.01-to-1.03.sh @ 888

Revision 888, 1.0 kB (checked in by jalet, 21 years ago)

As always I've forgotten to add the file into the CVS tree...

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1#! /bin/sh
2# $Id$
3echo WARNING : This is dangerous !
4echo WARNING : You may loose your PyKota Quota Storage contents.
5echo WARNING : If unsure press Ctrl+C NOW TO STOP, else press ENTER TO PROCEED
6read
7echo -n Update begins...
8pg_dump -D -N -U postgres -f pykotadb-full.dump pykota >update.messages 2>update.errors
9pg_dump -a -D -N -U postgres -f pykotadb.dump pykota >>update.messages 2>>update.errors
10dropdb pykota >>update.messages 2>>update.errors
11dropuser pykotaadmin >>update.messages 2>>update.errors
12dropuser pykotauser >>update.messages 2>>update.errors
13psql -U postgres template1 -f pykota-postgresql.sql >>update.messages 2>>update.errors
14psql -U postgres pykota -f pykotadb.dump >>update.messages 2>>update.errors
15echo
16echo Done !
17echo Check the files update.messages and update.errors to see if all is OK.
18echo NOTICE messages are normal and expected. In case other message types
19echo are found in update.errors, please file a bug report and restore
20echo your database from pykotadb-full.dump
Note: See TracBrowser for help on using the browser.