X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C35299DC85D for ; Wed, 21 Dec 2005 19:29:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40033-09 for ; Wed, 21 Dec 2005 19:29:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.nildram.co.uk (smtp.nildram.co.uk [195.112.4.54]) by postgresql.org (Postfix) with ESMTP id 6D8CB9DC84B for ; Wed, 21 Dec 2005 19:29:08 -0400 (AST) Received: from [192.168.0.4] (82-133-115-75.dyn.gotadsl.co.uk [82.133.115.75]) by smtp.nildram.co.uk (Postfix) with ESMTP id 6E8BC26F3CD; Wed, 21 Dec 2005 23:29:06 +0000 (GMT) Subject: Re: backup and wal files From: Simon Riggs To: "Jim C. Nasby" Cc: "f.guidi@libero.it" , pgsql-admin In-Reply-To: <20051215204048.GA40699@pervasive.com> References: <20051215204048.GA40699@pervasive.com> Content-Type: text/plain Date: Wed, 21 Dec 2005 23:29:10 +0000 Message-Id: <1135207750.2964.325.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.08 required=5 tests=[AWL=0.080] X-Spam-Score: 0.08 X-Spam-Level: X-Archive-Number: 200512/258 X-Sequence-Number: 19978 On Thu, 2005-12-15 at 14:40 -0600, Jim C. Nasby wrote: > I haven't played with PITR, but I believe that if PostgreSQL doesn't get > the right return code from the archive_command it will keep the WAL > files around; maybe that's the problem. > > On Wed, Dec 14, 2005 at 10:57:38AM +0100, f.guidi@libero.it wrote: > > Hello to all ... > > I'm trying to install a backup system for my Postgresql 8.1.1 (on windows xp) using 3 wal files. > > > > So i change these parameters in postgresql.conf > > checkpoint_segments = 3 > > archive_command = 'copy "%p" "D:/PostgreSQL/backup/%f"' > > > > I stop the database service and then restart it ... > > > > Before restart i have 1 wal now i have 1 wal file ... > > > > I start to generate data to populate wal files and postgres start to generate new wal files and copy them to the destination folder. > > > > The problem is that files number don't stop to increase, now i have 10 wal files in pg_xlog and 9 files in backup folder ... > > why the backup files don't be deleted ? > > > > thanks a lot in advance ... > > Take a look in the PGDATA/pg_xlog/archive_status directory. If the files all say ".ready" then your archive_command is not working correctly for some reason. Try running it manually to copy one of the files away. Best Regards, Simon Riggs