X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 84F99536CC for ; Thu, 31 Mar 2005 07:57:24 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 24158-08 for ; Thu, 31 Mar 2005 06:57:19 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by svr1.postgresql.org (Postfix) with ESMTP id B4A7A53695 for ; Thu, 31 Mar 2005 07:57:18 +0100 (BST) Received: by wproxy.gmail.com with SMTP id 68so535800wri for ; Wed, 30 Mar 2005 22:57:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=qCdyPOUiYwqAU6GSduoPbLVAyTQIK3u+B6BGGUltaScLwAU8NchOqQv4OvECDdCfqXYYFUnQIQTnQcT3HTiQtZKblzQ7230vS4HHYvHeFjaHF6L4M5hUBuBe4ZO1EOmNPbFXOkoAZ9uOjOphkoh57atk4pMZhD2ukbDvS4gflYM= Received: by 10.54.7.4 with SMTP id 4mr33226wrg; Wed, 30 Mar 2005 22:57:18 -0800 (PST) Received: by 10.54.18.43 with HTTP; Wed, 30 Mar 2005 22:57:18 -0800 (PST) Message-ID: <89bc2a0405033022576d6536c7@mail.gmail.com> Date: Thu, 31 Mar 2005 01:57:18 -0500 From: Jason DiCioccio Reply-To: Jason DiCioccio To: pgsql-admin@postgresql.org Subject: PITR/Online Backups? When can I delete archived WAL logs? Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.398 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200504/37 X-Sequence-Number: 17050 Ok. I have been going over the documention for PITR/Online Backups, and it has me confused about a couple of things. Hopefully someone can help me. :-) First of all, here's what I'm doing: -- from psql SELECT pg_start_backup('mylabel'); -- from shell rsync --exclude $WALARCHIVEDIR $PGDATA remotehost:/dir/to/pgdata # ignore the fact that WALARCHIVEDIR is not a real var.. it's defined correctly in mine :-) -- from psql SELECT pg_stop_backup('mylabel'); rsync $WALARCHIVEDIR remotehost:/dir/to/pgsql/archive When I do this, and throw a recovery.conf into place, it generally spits out errors like this on the other box if I attempt to start with this: cp: /usr/local/pgsql/archive/00000001.history: No such file or directory cp: /usr/local/pgsql/archive/00000001000000000000000F: No such file or directory Do I need to backup pg_xlog? I could have sworn it said not to. Also, am I doing this right at all? Does anyone have a script they are using for this? Thanks in advance, Jason DiCioccio