On Tue, Oct 28, 2008 at 03:54:38PM -0200, Rogerio Luz wrote:
> But when trying to restore still can´t make it work. Complains about the DB
> already being active,
yes
> AND I can´t "dropdb gnumed_v9"
why / how ?
> (wich I guess is a good thing :)
It surely helps prevent accidents.
> /home/rogerio/GNUmed/GNUmed-v9/server# sh gm-restore_database.sh
> /home/rogerio/Desktop/backup-gnumed_v9-GNUmed_Team-casa-deb-2008-10-28-15-11-55.tar.bz2
This is a whole database backup. Good.
> ==> Checking for existence of target database gnumed_v9 ...
> ERROR: database gnumed_v9 already exists, aborting
But GNUmed refuses to restore a gnumed_v9 database if you
already have one. Better to be safe than sorry.
> What am I doing wrong now ?
You need to drop the database before restoring. Or rename it.
> ;) and besides, IF I let all the roles in there will it be much of a
> problem?
This much depends on what else you are using GNUmed for.
> I guess I need only "any-doc" "gm-dbo" and "rogluz" (my account)
> and all the "gnumed_vX" roles ??
plus "gm-logins" and "gm-doctors" etc