Re: Restore a backup to a different disk?

From: Andreas Schmitz <mailinglist(at)longimanus(dot)net>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: 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-23 06:16:03
Message-ID: 4C4933A3.20909@longimanus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Reading this thread confuses me a little bit. There is no need to backup
a cluster in order to move it to another disk within the same machine.
Stopping the Database, moving $PGDATA, adjusting scripts and routines if
nessecary and firing up the whole thing would do fine.

regards

-Andreas

On 07/22/2010 10:48 PM, Kevin Grittner wrote:
> 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

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2010-07-23 07:29:43 Re: Execution plan
Previous Message std pik 2010-07-23 04:10:22 Execution plan