[Gnumed-devel] problems to restore DB in Debian Testing
From:
Rogerio Luz Coelho
Subject:
[Gnumed-devel] problems to restore DB in Debian Testing
Date:
Wed, 3 Mar 2010 00:23:00 -0300
when I try to restore a gnumed_v12 DB:
sh gm-restore_database.sh /root/backup-gnumed_v12-DrRogerioLuzCoelho-consultorio-2010-02-15-01-36-38.tar.bz2
==> Trying to restore a GNUmed backup ... file: /root/backup-gnumed_v12-DrRogerioLuzCoelho-consultorio-2010-02-15-01-36-38.tar.bz2
==> Reading configuration ... gm-restore_database.sh: 58: [[: not found
==> Setting up workspace ... /root/gnumed/gm-restore-2010-03-03-00-16-21/
==> Creating copy of backup file ...
"/root/backup-gnumed_v12-DrRogerioLuzCoelho-consultorio-2010-02-15-01-36-38.tar.bz2" -> "/root/gnumed/gm-restore-2010-03-03-00-16-21/backup-gnumed_v12-DrRogerioLuzCoelho-consultorio-2010-02-15-01-36-38.tar.bz2"
==> Unpacking backup file ... gm-restore_database.sh: 93: [[: not found tar: Record size = 8 blocks -rwxrwxrwx root/root 4702359 2010-02-15 01:36 backup-gnumed_v12-DrRogerioLuzCoelho-consultorio-2010-02-15-01-36-38-database.sql
-rwxrwxrwx root/root 5197 2010-02-15 01:36 backup-gnumed_v12-DrRogerioLuzCoelho-consultorio-2010-02-15-01-36-38-roles.sql
==> Adjusting GNUmed roles ...
You will now be shown the roles backup file.
Please edit it to only include the roles you need for GNUmed.
Remember that in PostgreSQL scripts the comment marker is "--".
read: 110: Illegal option -e
==> Checking target database status ...
head: não foi possível abrir "backup-gnumed_v12-DrRogerioLuzCoelho-consultorio-2010-02-15-01-36-38.tar.bz2-database.sql" para leitura: Arquivo ou diretório não encontrado ERROR: Backup does not create target database . Aborting.
## when it opens the "roles" file with editor it is absolutely empty ## do not know where the log file is