Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 26A1464FC4E for ; Mon, 8 Dec 2008 19:36:37 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 51843-06 for ; Mon, 8 Dec 2008 19:36:34 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.227]) by mail.postgresql.org (Postfix) with ESMTP id 3F44064FC41 for ; Mon, 8 Dec 2008 19:36:34 -0400 (AST) Received: by qb-out-0506.google.com with SMTP id d8so1309679qbc.23 for ; Mon, 08 Dec 2008 15:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=vPGBzSqBTvVtB2pcPbm9qnKvAgsLxyfqBKSMDysuSnw=; b=gbEhK78IQ0SPO95Ro4i5vR18oPxBGG7yf0dsWwlK/Xl4LJZ6H1IgdAIZBiMUnsvBiX bdzkZ0pZN+Ysv6WeKXkTelWqGulFEB/VA/QcnLmrIhCwKhVVlDDsahtpkeme/q99SEq8 HoAMcNO1w5hYPCyRQDV87I0NDupidFySSPwgA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=EMW92x1yb/2yTEpyxvaL82qf0QTm1Z9npXuvO6SilHZoK/m++tGSIvAsUaGYL3cKFQ /9TgAp6QZSiXvjHkiaGVgBQ0QQnSyOyXJtDt+gzkkWbkeU3WTQK5zTb49o1FNuEXOtKY ATsN3HszGdNLCDzf1ztG5qvq7NDpCdNJvF5bM= Received: by 10.114.130.1 with SMTP id c1mr2747275wad.73.1228779391925; Mon, 08 Dec 2008 15:36:31 -0800 (PST) Received: by 10.114.133.4 with HTTP; Mon, 8 Dec 2008 15:36:31 -0800 (PST) Message-ID: Date: Mon, 8 Dec 2008 16:36:31 -0700 From: "Scott Marlowe" To: PJ Subject: Re: recover or move databases Cc: pgsql-admin@postgresql.org In-Reply-To: <493DAD4B.50005@videotron.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <493DAD4B.50005@videotron.ca> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/67 X-Sequence-Number: 30900 On Mon, Dec 8, 2008 at 4:27 PM, PJ wrote: > I am trying to recover postgres databases from a crashed disk. > I have set up a new installation of FreeBSD 7.0 with postgresql8.3. > The old databases are accessible when the repaired disk is mounted : > /oldfsb/local/pgsql/data/base/. > How can I move these databases to the new /usr/local/pgsql/data/base/ ? > Old and new are both v. 8.3 > Copying does not do it. > This seems to be one way, but it seems rather long... and complicated.. > Any help would be appreciated, Not copy, you need to start the postmaster on the old directory, use pg_dump or pg_dumpall to get the data out, the stop the db and start it back up on the new directory and use psql or pg_restore.