pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Schmitz <mailinglist@longimanus.net>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-admin@postgresql.org, a f <just1coder@yahoo.ca>
Subject: Re: Restore a backup to a different disk?
Date: Fri, 23 Jul 2010 08:16:03 +0200
Message-ID: <4C4933A3.20909@longimanus.net> (raw)
In-Reply-To: <4C4868510200002500033B87@gw.wicourts.gov>
References: <263251.56844.qm@web65412.mail.ac4.yahoo.com>
	<4C48311B0200002500033B27@gw.wicourts.gov>
	<240044.87213.qm@web65408.mail.ac4.yahoo.com>
	<4C484E9E0200002500033B56@gw.wicourts.gov>
	<248984.75183.qm@web65402.mail.ac4.yahoo.com>
	<4C4868510200002500033B87@gw.wicourts.gov>


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@yahoo.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
>
>    




view thread (7+ messages)

Message-ID: <4C4933A3.20909@longimanus.net>
Permalink:  ../4C4933A3.20909@longimanus.net/
Also on:    postgresql.org/message-id/4C4933A3.20909@longimanus.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: mailinglist@longimanus.net, Kevin.Grittner@wicourts.gov, just1coder@yahoo.ca
  Subject: Re: Restore a backup to a different disk?
  In-Reply-To: <4C4933A3.20909@longimanus.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox