Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7959F13364DE for ; Thu, 7 Apr 2011 15:39:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 24408-05 for ; Thu, 7 Apr 2011 18:39:49 +0000 (UTC) X-Greylist: delayed 00:21:48.139834 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 6E316133616B for ; Thu, 7 Apr 2011 15:39:48 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Q7tmK-0005ml-1o for pgsql-admin@postgresql.org; Thu, 07 Apr 2011 11:18:00 -0700 Date: Thu, 7 Apr 2011 11:18:00 -0700 (PDT) From: droland To: pgsql-admin@postgresql.org Message-ID: <1302200280041-4289135.post@n5.nabble.com> Subject: pg_start_backup - backups 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.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201104/63 X-Sequence-Number: 37244 Attempting to run a backup with the database online. I first issue 'PG_START_BACKUP', then copy the contents of the postgresql data folder, then issue 'PG_STOP_BACKUP'. The database service remains running during the copy. If queries continue to hit the database after the PG_START_BACKUP command is issued changes to the data folder are possible, which can cause copy errors (for instance, a file not found exception). The file copy method first creates a string array of the data folder contents (all folders and files) and then processes the array, copying one file at a time. What am I doing wrong? -- View this message in context: http://postgresql.1045698.n5.nabble.com/pg-start-backup-backups-tp4289135p4289135.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com.