Unix Technical Forum

backup restore of DB + LO

This is a discussion on backup restore of DB + LO within the pgsql Admins forums, part of the PostgreSQL category; --> Hello everybody, I'm trying backup restore of DB with LO. I backuped using as superuser : pg_dump -d -o ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 06:27 AM
FM
 
Posts: n/a
Default backup restore of DB + LO

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

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:57 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com