Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id CF7A3632AEE for ; Fri, 23 Jul 2010 04:15:45 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 66823-02 for ; Fri, 23 Jul 2010 07:15:38 +0000 (UTC) X-Greylist: delayed 00:59:25.906199 by SQLgrey-1.7.6 Received: from echo917.server4you.de (echo917.server4you.de [85.25.141.73]) by mail.postgresql.org (Postfix) with ESMTP id 110E66324A4 for ; Fri, 23 Jul 2010 04:15:37 -0300 (ADT) Received: from localhost.localdomain (essn-d9bba244.pool.mediaWays.net [217.187.162.68]) (authenticated bits=0) by echo917.server4you.de (8.14.2/8.13.6) with ESMTP id o6N6G3tt001955; Fri, 23 Jul 2010 08:16:08 +0200 Message-ID: <4C4933A3.20909@longimanus.net> Date: Fri, 23 Jul 2010 08:16:03 +0200 From: Andreas Schmitz User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Thunderbird/3.0.5 MIME-Version: 1.0 To: Kevin Grittner CC: pgsql-admin@postgresql.org, a f Subject: Re: Restore a backup to a different disk? 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> In-Reply-To: <4C4868510200002500033B87@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_40=-0.001 X-Spam-Level: X-Archive-Number: 201007/166 X-Sequence-Number: 35185 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 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 > >