Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 092799FA618 for ; Thu, 9 Nov 2006 03:02:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 37669-03 for ; Thu, 9 Nov 2006 07:02:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id D3A9C9FB1C2 for ; Thu, 9 Nov 2006 03:02:13 -0400 (AST) Received: by noel.decibel.org (Postfix, from userid 1001) id 17C645646A; Thu, 9 Nov 2006 01:02:13 -0600 (CST) Received: (hashcash-sendmail, from uid 1001); Thu, 9 Nov 2006 01:02:09 -0600 Date: Thu, 9 Nov 2006 01:02:09 -0600 From: "Jim C. Nasby" To: "Andy Shellam (Mailing Lists)" Cc: pgsql-admin@postgresql.org Subject: Re: Checkpoint Location Format Message-ID: <20061109070209.GE90133@nasby.net> References: <45508655.4040708@mailnetwork.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45508655.4040708@mailnetwork.co.uk> X-Operating-System: FreeBSD 6.1-RELEASE-p10 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.13 (2006-08-11) X-Hashcash: 1:20:061109:andy.shellam-lists@mailnetwork.co.uk::M10BeAu0uqMHlHH0:0 0000000000000000000000008/JI X-Hashcash: 1:20:061109:pgsql-admin@postgresql.org::9ck2gD4115O0bIQu:00000000000 000000000000000000000000C4DH X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/85 X-Sequence-Number: 23612 On Tue, Nov 07, 2006 at 01:12:53PM +0000, Andy Shellam (Mailing Lists) wrote: > Hi, > > I'm writing an automated file-system level backup application for use > with WAL archiving, that will issue the pg_start_backup call, tar and > gzip the cluster data directory, issue the pg_stop_backup call, and > remove all previous un-needed WAL files from the archive. > > I need to write a regular expression that will search for the WAL > filename and checkpoint location from the backup_label file, and just > want to clarify that the checkpoint location will always be of the > format: X/XXXXXX - where X is one of 0-9, A-F? > > And then the WAL .backup file that is generated in the archive, has a > filename of the form: > > .00XXXXXX.backup > > where is the name of the "STARTING WAL LOCATION" directive in > the backup_label file, and XXXXXX is the last 6 digits of the checkpoint > (after the / )? I don't know the answer, but since no one's replied I suggest looking in the code. Looking at the source of pg_start_backup would probably be a good start, though I'm guessing the real answer is somewhere in the backend. -- Jim Nasby jim@nasby.net EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)