Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 70319B5DBD5 for ; Fri, 27 May 2011 16:46:55 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 89535-04 for ; Fri, 27 May 2011 19:46:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 01747B5DBBF for ; Fri, 27 May 2011 16:46:47 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QQ2zf-0006x7-H6 for pgsql-admin@postgresql.org; Fri, 27 May 2011 12:46:47 -0700 Date: Fri, 27 May 2011 12:46:47 -0700 (PDT) From: sonnix To: pgsql-admin@postgresql.org Message-ID: <1306525607517-4433255.post@n5.nabble.com> Subject: Restore master from slave MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.766 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201105/172 X-Sequence-Number: 37609 Hi, i have master and slave server(timeline 1). I turned off master and set up slave to new temporary master and it has enabled wal archiving (timeline 2). While the main master was turned off i had some insert to temporary master. I need to recovery this inserts to main master from wal logs. When i made recovery it create new timeline 3, but inserts from temporary master didn't executed restored log file "000000010000000000000006" from archive consistent recovery state reached at 0/6017F08 record with zero length at 0/6017F08 redo is not required restored log file "00000002.history" from archive cp: cannot stat `/mnt/backup/backup/archive/00000003.history': No such file or directory selected new timeline ID: 3 Can i make only base backup from temporary master to main master? -- View this message in context: http://postgresql.1045698.n5.nabble.com/Restore-master-from-slave-tp4433255p4433255.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com.