pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: JieJun Xu <jiejun83@gmail.com>
To: pgsql-admin@postgresql.org
Subject: problem backup/restore PSQL DB
Date: Mon, 24 Jul 2006 17:26:51 -0700
Message-ID: <75c69f690607241726r1a640b2excab3439485cdff63@mail.gmail.com> (raw)

Hi all,
    I am trying to backup a psql database in one system(Debian), and restore
it to another system(ubuntu) which has a fresh installed psql db.  However,
I got the following errors. Can anyone give me some help on solving it. Many
thanks.

-------------
 OME Restore
-------------

    \_ Extracting postgres database ome and checking archive version
/bin/tar  --preserve-permissions --same-owner --directory /tmp -xf
'ome_backup_2006-07-24.tar' OMEmaint omeDB_backup    \_ Checking archive for
OMEIS files
/bin/tar  -tf 'ome_backup_2006-07-24.tar' Files/lastFileID
    \_ Restoring postgress database ome
Checking database
Database ome (version 2.23) was found and it will be overwritten. Continue
? [y/n]: y
su postgres -c '/usr/bin/createuser --adduser --createdb  ome'
createuser: creation of new user failed: ERROR:  user "ome" already exists
su postgres -c '/usr/bin/createdb  -T template0 ome'
CREATE DATABASE
su postgres -c '/usr/bin/pg_restore  -O -d ome
--use-set-session-authorization /tmp/omeDB_backup'
pg_restore: [archiver (db)] could not execute query: ERROR:  user "rajesh"
does not exist

view thread (5+ messages)  latest in thread

Message-ID: <75c69f690607241726r1a640b2excab3439485cdff63@mail.gmail.com>
Permalink:  ../75c69f690607241726r1a640b2excab3439485cdff63@mail.gmail.com/
Also on:    postgresql.org/message-id/75c69f690607241726r1a640b2excab3439485cdff63@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jiejun83@gmail.com
  Subject: Re: problem backup/restore PSQL DB
  In-Reply-To: <75c69f690607241726r1a640b2excab3439485cdff63@mail.gmail.com>
  References: <75c69f690607241726r1a640b2excab3439485cdff63@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox