473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

postgres server recovery

137 100+
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
Apr 15 '08 #1
5 4082
rski
700 Expert 512MB
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?
Apr 15 '08 #2
coolminded
137 100+
What is data folder? You mean folder with databases?

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


coolminded
Apr 15 '08 #3
rski
700 Expert 512MB
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?
Apr 16 '08 #4
coolminded
137 100+
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..
Apr 16 '08 #5
rski
700 Expert 512MB
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.
Apr 16 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Adam Kempa | last post by:
Hello I've been installed Postgres 7.4.2 on FreeBSD system and when load average grow up i've error in postgres like this: ERROR: permission denied for function varchar ERROR: permission...
6
by: Martin Meyer im Hagen | last post by:
Hello, I've got installed Win 2003 SBS Premium with the SQL Server 2000 on a server machine. It works almost fine, except the application which uses the SQL Server. The main part of the...
3
by: N.K. | last post by:
Hi, I've just installed postgres on the Linux server. It is supposed to start automatically which I think it does since I can run an sql stmt right away. When I'm trying to connect from a remote...
7
by: Abdul-Wahid Paterson | last post by:
Hi, I have had a site working for the last 2 years and have had no problems until at the weekend I replace my database server with a newer one. The database migration went like a dream and I had...
18
by: Joe Lester | last post by:
This thread was renamed. It used to be: "shared_buffers Question". The old thread kind of died out. I'm hoping to get some more direction by rephrasing the problem, along with some extra...
19
by: dunleav1 | last post by:
I built a test job that loads data into the database. I get great performance with Oracle and I'm trying to tune Sql Server to get the same type of performance. Based on system monitoring it...
2
by: m19peters | last post by:
We have a script that I had to rework a little bit for 2005 that does a full backup for every database on the server... For some reason on some nights the script does not backup all databases......
1
by: micofarmer | last post by:
We are running a PHP web-based frontend with a Postgres 7.2 backend on a Windows 2000 Server box with automated backups of the server being handled by Legato. We are experiencing several problems...
1
by: ntech | last post by:
Hello, While Performing the Online Recovery By PITR, We had a Problem as we didnt Understand the proper Way of Enabling PITR on all POSTGRES Server . again , when psql -c "select...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.