Re: Restore a backup to a different disk?

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-admin(at)postgresql(dot)org>,"a f" <just1coder(at)yahoo(dot)ca>
Subject: Re: Restore a backup to a different disk?
Date: 2010-07-22 20:48:33
Message-ID: 4C4868510200002500033B87@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

a f <just1coder(at)yahoo(dot)ca> wrote:

>>> but #1 was focused on backing up MyDatabase that resides on
>>> /hda1/pgdata, and restore it as MyDatabase2 on /hda2/pgdata.
>
>> Do you already have the backup you want to restore? If so, how
>> was it made, exactly?
>
>
> Yes.
> I used pg_dump to make the backup.

Well, if you made it without specifying any non-default options
you're not telling me about, you should initdb on the new drive (if
you haven't already), create any roles you had in the old database
which you want in the new one, create the database with the name you
want it to have, and run psql against that database using the file
created by pg_dump.

-Kevin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2010-07-22 20:55:29 Re: How much RAM is too much ?
Previous Message A J 2010-07-22 20:45:16 How much RAM is too much ?