Unix Technical Forum

Copy DataBases Server to server

This is a discussion on Copy DataBases Server to server within the Pgsql General forums, part of the PostgreSQL category; --> Hi everyone, I've a problem that i'am not able to solve alone (i'm kinda newbie on postgresql). we were ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 05:57 AM
nicolas.hafner
 
Posts: n/a
Default Copy DataBases Server to server

Hi everyone,
I've a problem that i'am not able to solve alone (i'm kinda newbie on
postgresql).
we were running PostgreSQL 7.4 under Linux (Mandriva) but our HDD crashs
and we lost the system but were able to backup the database files to an
other HDD.
now we want to copy the databases to our new server but it runs
windows XP Pro 64bits and PostGreSQL 8.0.
I try something simple, copy the former databases files in
postgresql\data\base but it doesn't work (i knew it won't be so simple)
and i look the 3 .conf files but i've found nothing intersing for my
case. I could easyly rebuild the relationship, but re-importing the data
will be a last option (it takes a few days the last time).
I'll go with the questions:
First: Is it realistic to think that what we want is possible?
second: if yes, Is it for PostGre Gurus, or will i be able to do it?
third: thanks, that's all!


---------------------------(end of broadcast)---------------------------
TIP 4: 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
  #2 (permalink)  
Old 04-09-2008, 05:57 AM
Tino Wildenhain
 
Posts: n/a
Default Re: Copy DataBases Server to server

nicolas.hafner schrieb:
> Hi everyone,
> I've a problem that i'am not able to solve alone (i'm kinda newbie on
> postgresql).
> we were running PostgreSQL 7.4 under Linux (Mandriva) but our HDD crashs
> and we lost the system but were able to backup the database files to an
> other HDD.
> now we want to copy the databases to our new server but it runs
> windows XP Pro 64bits and PostGreSQL 8.0.
> I try something simple, copy the former databases files in
> postgresql\data\base but it doesn't work (i knew it won't be so simple)
> and i look the 3 .conf files but i've found nothing intersing for my
> case. I could easyly rebuild the relationship, but re-importing the data
> will be a last option (it takes a few days the last time).
> I'll go with the questions:
> First: Is it realistic to think that what we want is possible?
> second: if yes, Is it for PostGre Gurus, or will i be able to do it?
> third: thanks, that's all!


You need to set up exact same version of postgres and point it to your
backed up database cluster (filesystem copy).

Then make a regular backup via pg_dump from this running copy.
Best is with postgres 8 pg_dump from the other host.

Btw, to get all the tuning knobs and best out of your hardware,
you might use linux or bsd for your production server instead of
windows.

HTH
Tino


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

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 05:03 AM.


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