Ticket #234 (new Bug)
Opened 3 years ago
backuptool: restore fails with PostgreSQL
| Reported by: | andreas@… | Owned by: | somebody |
|---|---|---|---|
| Priority: | Minor | Milestone: | |
| Component: | Backup | Version: | 1.4 |
| Keywords: | Cc: |
Description
[jira2trac import : issue created on January 5, 2006 9:51:15 AM CET http://issues.cocoondev.org/browse/DSY-234 ]
a) Doing a backup with PostgreSQL is o.k. now.
However restoring a backup does not work:
$ ./daisy-backup-tool -r 20060105_000/ -l .
Restoring this backup will undo all changes made since Thu Jan 05 02:58:23 CET 2006
Do you wish to restore the backup? [yes|no, default: no]
yes
Restoring backup-20060105_000/ ...
Restoring database : daisyrepository
You may be prompted for the password of the following database user twice : daisy
Passwort:
Passwort für Benutzer daisy:
psql: FATAL: Datenbank »template1ye« existiert nicht
java.lang.RuntimeException?: java.lang.UNIXProcess@… ran with errors.
at org.outerj.daisy.backupTool.dbDump.AbstractDbDumper?.handleRuntimeProcess(AbstractDbDumper?.java:78)
at org.outerj.daisy.backupTool.dbDump.PostgresqlDbDumper?.restore(PostgresqlDbDumper?.java:53)
at org.outerj.daisy.backupTool.DbBackupEntry?.restore(DbBackupEntry?.java:43)
at org.outerj.daisy.backupTool.BackupManager?.restore(BackupManager?.java:150)
at org.outerj.daisy.backupTool.BackupTool?.restoreBackup(BackupTool?.java:169)
at org.outerj.daisy.backupTool.BackupTool?.main(BackupTool?.java:87)
b) I'm running Daisy successfully with PostgeSQL 8.1.1, so the information in
daisy/install/src/java/org/outerj/daisy/install/InstallHelper.java
should be adapted