pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: FM <dist-list@LEXUM.UMontreal.CA>
To: Mailing List Postgres-Admin <pgsql-admin@postgresql.org>
Subject: backup restore of DB + LO
Date: Thu, 10 Nov 2005 12:26:42 -0500
Message-ID: <437382D2.7050508@lexum.umontreal.ca> (raw)

Hello everybody,

I'm trying backup restore of DB with LO.

I backuped using  as superuser :
pg_dump -d -o -F t -b -u database --file=database.tar

Because the superuser is not the  DB owner, I create the DB on another 
server (same os ans same version of PGSQL which is 7.4.8 )  :
CREATE DATABASE database with owner database_owner  encoding='utf8';

Now, I'm trying to restore it to this second server using :
pg_restore -U dbadmin -O -x -v -o -d database database.tar
But I received  :
(...)
pg_restore: restoring large object OID 2798405
pg_restore: restored 64069 large objects
pg_restore: creating COMMENT SCHEMA public
pg_restore: creating TABLE jpox_tables
pg_restore: restoring data for table "jpox_tables"
pg_restore: [tar archiver] could not find header for file 99.dat in tar 
archive

 What is the good way to backup/restore db with LO ?

Thanks



Message-ID: <437382D2.7050508@lexum.umontreal.ca>
Permalink:  ../437382D2.7050508@lexum.umontreal.ca/
Also on:    postgresql.org/message-id/437382D2.7050508@lexum.umontreal.ca

 · 

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: dist-list@LEXUM.UMontreal.CA
  Subject: Re: backup restore of DB + LO
  In-Reply-To: <437382D2.7050508@lexum.umontreal.ca>
  References: <437382D2.7050508@lexum.umontreal.ca>

* 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