Unix Technical Forum

restore data from DB base?

This is a discussion on restore data from DB base? within the pgsql Admins forums, part of the PostgreSQL category; --> One server that hold postgresql(7.4.6) and data(account system data) stop working yesterday, the disks may be demaged. the data ...


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, 01:13 AM
jennifer fan
 
Posts: n/a
Default restore data from DB base?


One server that hold postgresql(7.4.6) and data(account system data) stop working yesterday, the disks may be demaged. the data wasn't backuped. Does anybody know how to restore data from DB base. That means, if the data directory could be found from disk, is it possiple to install a postgresql(7.4.6) in a new machine, copy data directory to new machine, then try to restore data ? But how to ask postgresql knew the data directory? Any suggestion will very be apperciate.

Thanks







---------------------------------
Post your free ad now! Yahoo! Canada Personals

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 01:13 AM
Joshua D. Drake
 
Posts: n/a
Default Re: restore data from DB base?

jennifer fan wrote:

> One server that hold postgresql(7.4.6) and data(account system data)
> stop working yesterday, the disks may be demaged. the data wasn't
> backuped. Does anybody know how to restore data from DB base. That
> means, if the data directory could be found from disk, is it possiple
> to install a postgresql(7.4.6) in a new machine, copy data directory
> to new machine, then try to restore data ? But how to ask postgresql
> knew the data directory? Any suggestion will very be apperciate.
>

If the data directory is intact, you should be able to move it to a new
7.4.6 postgresql installation without issue.
You could then start it up with a command like this:

pg_ctl -D <path to data directory> -l <path to logfile> start

Sincerely,

Joshua D. Drake



> Thanks
>
>
>
>
>
>
> ------------------------------------------------------------------------
> Post your free ad now! *Yahoo! Canada Personals*
> <http://ca.personals.yahoo.com/>




--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd@commandprompt.com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL



---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

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 09:12 AM.


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