Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 064C89FA2F4 for ; Sat, 3 Feb 2007 03:26:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 40438-08 for ; Sat, 3 Feb 2007 03:26:08 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 1D7999FB262 for ; Sat, 3 Feb 2007 03:26:10 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from threephase.globalherald.net (oh-67-76-158-149.sta.embarqhsd.net [67.76.158.149]) by svr4.postgresql.org (Postfix) with ESMTP id 3B6485AF8A3 for ; Sat, 3 Feb 2007 06:57:21 +0000 (GMT) Received: from [192.168.2.155] (unknown [192.168.2.155]) by threephase.globalherald.net (Postfix) with ESMTP id 0C79D1C233 for ; Fri, 2 Feb 2007 21:03:46 -0500 (EST) Date: Sat, 3 Feb 2007 01:51:56 -0500 (EST) From: Joshua Kramer X-X-Sender: josh@localhost.localdomain To: pgsql-admin@postgresql.org Subject: Backup Strategies? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.386 tagged_above=0 required=5 tests=AWL, BAYES_50, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200702/41 X-Sequence-Number: 24506 Hello All, What strategies are people using for automated, script-based backup of databases? There are a few I can think of: 1. Create a "db_backup" unix user and a "db_backup" pgsql user. Grant READ access to all objects on all databases for the "db_backup" pgsql user. Create a .pgpass file in the home directory of the "db_backup" unix user. Backup as needed with a script run as the "db_backup" unix user. 2. Create a "db_backup" unix user and repeat above, except using the "postgres" db user. Thanks, -Josh