Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old April 15th, 2008, 06:05 AM
Member
 
Join Date: Mar 2007
Posts: 106
Default postgres server recovery

hi all,
i have a postgres server for one online application. if the server is crashed by chance how can i recover it, if i have taken the back-up of the "data" folder. can it be done in linux, if yes then how? could anybody suggest me ? or is there any other method to do so?
thanx in advance
Reply
  #2  
Old April 15th, 2008, 09:13 AM
Moderator
 
Join Date: Dec 2006
Posts: 250
Default

Quote:
Originally Posted by coolminded
hi all,
i have a postgres server for one online application. if the server is crashed by chance how can i recover it, if i have taken the back-up of the "data" folder. can it be done in linux, if yes then how? could anybody suggest me ? or is there any other method to do so?
thanx in advance
What is data folder? You mean folder with databases?
Reply
  #3  
Old April 15th, 2008, 10:15 AM
Member
 
Join Date: Mar 2007
Posts: 106
Default

Quote:
Originally Posted by rski
What is data folder? You mean folder with databases?

hi rski,
yes i mean the folder with databases.can it be done?


coolminded
Reply
  #4  
Old April 16th, 2008, 07:31 AM
Moderator
 
Join Date: Dec 2006
Posts: 250
Default

Quote:
Originally Posted by coolminded
hi rski,
yes i mean the folder with databases.can it be done?


coolminded
But you have only 'base' (where are databases folders) folder or whole cluster folder?
Reply
  #5  
Old April 16th, 2008, 09:47 AM
Member
 
Join Date: Mar 2007
Posts: 106
Default

Quote:
Originally Posted by rski
But you have only 'base' (where are databases folders) folder or whole cluster folder?

my data folder is in

/usr/local/pgsql/data

and it contains following

base pg_hba.conf pg_subtrans PG_VERSION postmaster.opts
global pg_ident.conf pg_tblspc pg_xlog postmaster.pid
pg_clog pg_multixact pg_twophase postgresql.conf serverlog

and one more question to ask
how to setup PITR in linux

with regards..
Reply
  #6  
Old April 16th, 2008, 10:12 AM
Moderator
 
Join Date: Dec 2006
Posts: 250
Default

Quote:
Originally Posted by coolminded
my data folder is in

/usr/local/pgsql/data

and it contains following

base pg_hba.conf pg_subtrans PG_VERSION postmaster.opts
global pg_ident.conf pg_tblspc pg_xlog postmaster.pid
pg_clog pg_multixact pg_twophase postgresql.conf serverlog

and one more question to ask
how to setup PITR in linux

with regards..
So you have w copy of whole cluster. What you need is to start serwer with your this cluster using command

pg_ctl start -D path_to_data_directory

was it helpful?
See here for PITR.
Reply
Reply

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles