Restore DB

Started by Shahbaz A. Tyagiabout 17 years ago6 messagesgeneral
Jump to latest
#1Shahbaz A. Tyagi
shahbaz.tyagi@sphere.ae

Hi,

We are using Postgres 8.3. We have backed up our db and while trying to
restore, its not able to. We are using PgAdminIII for the same.

What all other ways we have to restore the db. We have both the old data
directory as well as backed up data.

Shabz

#2Ashish Karalkar
ashish.karalkar@enterprisedb.com
In reply to: Shahbaz A. Tyagi (#1)
Re: Restore DB

Shahbaz A. Tyagi wrote:

Hi,

We are using Postgres 8.3. We have backed up our db and while trying
to restore, its not able to. We are using PgAdminIII for the same.

What all other ways we have to restore the db. We have both the old
data directory as well as backed up data.

Shabz

What is the Error?

There are many ways to restore a backup and depends on how you took the
backup.
Plz lets us know how u took the backup and what O/S you r using

--Ashish

#3Ashish Karalkar
ashishka@synechron.com
In reply to: Shahbaz A. Tyagi (#1)
Re: Restore DB

Shahbaz A. Tyagi wrote:

Hi,

We are using Postgres 8.3. We have backed up our db and while trying
to restore, its not able to. We are using PgAdminIII for the same.

What all other ways we have to restore the db. We have both the old
data directory as well as backed up data.

Shabz

What is the Error?

There are many ways to restore a backup and depends on how you took the
backup.
Plz lets us know how u took the backup and what O/S you r using

--Ashish

#4Shahbaz A. Tyagi
shahbaz.tyagi@sphere.ae
In reply to: Ashish Karalkar (#3)
Re: Restore DB

We took using PgAdminIII right click action. And it generated .backup files.

However while restoring whole machine is getting hanged for unlimited time.
So just checking do we have some other way also, as we have complete Postgre
directory also.

Thanks,

Shahbaz A. Tyagi
Sphere Networks

-----Original Message-----
From: Ashish Karalkar [mailto:ashishka@synechron.com]
Sent: Wednesday, February 25, 2009 4:38 PM
To: Shahbaz A. Tyagi
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Restore DB

Shahbaz A. Tyagi wrote:

Hi,

We are using Postgres 8.3. We have backed up our db and while trying
to restore, its not able to. We are using PgAdminIII for the same.

What all other ways we have to restore the db. We have both the old
data directory as well as backed up data.

Shabz

What is the Error?

There are many ways to restore a backup and depends on how you took the
backup.
Plz lets us know how u took the backup and what O/S you r using

--Ashish

#5Ashish Karalkar
ashishka@synechron.com
In reply to: Shahbaz A. Tyagi (#4)
Re: Restore DB

Shahbaz A. Tyagi wrote:

We took using PgAdminIII right click action. And it generated .backup files.

However while restoring whole machine is getting hanged for unlimited time.
So just checking do we have some other way also, as we have complete Postgre
directory also.

Thanks,

Shahbaz A. Tyagi
Sphere Networks

-----Original Message-----
From: Ashish Karalkar [mailto:ashishka@synechron.com]
Sent: Wednesday, February 25, 2009 4:38 PM
To: Shahbaz A. Tyagi
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Restore DB

Shahbaz A. Tyagi wrote:

Hi,

We are using Postgres 8.3. We have backed up our db and while trying
to restore, its not able to. We are using PgAdminIII for the same.

What all other ways we have to restore the db. We have both the old
data directory as well as backed up data.

Shabz

What is the Error?

There are many ways to restore a backup and depends on how you took the
backup.
Plz lets us know how u took the backup and what O/S you r using

--Ashish

I am considering that you have taken this directory backup when server
was shutdown.

Place the directory at desired location and start the server as a
postgres user

pg_ctl -D <path to postgres data directory> start

#6Scott Marlowe
scott.marlowe@gmail.com
In reply to: Shahbaz A. Tyagi (#4)
Re: Restore DB

On Wed, Feb 25, 2009 at 6:54 AM, Shahbaz A. Tyagi
<shahbaz.tyagi@sphere.ae> wrote:

We took using PgAdminIII right click action. And it generated .backup files.

However while restoring whole machine is getting hanged for unlimited time.
So just checking do we have some other way also, as we have complete Postgre
directory also.

Are you sure it's actually failing and not just taking a long time?