Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 753769F9EF0 for ; Sat, 3 Feb 2007 06:55:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 09631-05 for ; Sat, 3 Feb 2007 06:55:46 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from weatherbeeta.com.au (218-214-212-153.people.net.au [218.214.212.153]) by postgresql.org (Postfix) with SMTP id 4BB0B9F9DB0 for ; Sat, 3 Feb 2007 06:55:44 -0400 (AST) Received: (qmail 28561 invoked from network); 3 Feb 2007 10:55:42 -0000 X-NetworkBox-HamSign: 0101;OUT;wbeetaau1;13a8087f55418bb94995f714dd113e3f; Received: from mail.weatherbeeta.com.au (10.10.0.2) by network-box.weatherbeeta.com.au with SMTP; 3 Feb 2007 10:55:42 -0000 Received: (qmail 22607 invoked by uid 1166); 3 Feb 2007 21:55:41 +1100 Received: from 203.214.33.122 by mail.weatherbeeta.com.au (envelope-from , uid 1165) with qmail-scanner-1.25-st-qms (clamdscan: 0.88.6/2315. perlscan: 1.25-st-qms. Clear:RC:0(203.214.33.122):. Processed in 0.169017 secs); 03 Feb 2007 10:55:41 -0000 X-Antivirus-mail.weatherbeeta.com.au-Mail-From: phillip.smith@weatherbeeta.com.au via mail.weatherbeeta.com.au X-Antivirus-mail.weatherbeeta.com.au: 1.25-st-qms (Clear:RC:0(203.214.33.122):. Processed in 0.169017 secs Process 22602) Received: from 203-214-33-122.dyn.iinet.net.au (HELO ?192.168.1.253?) (phillip.smith@weatherbeeta.com.au@203.214.33.122) by mail.weatherbeeta.com.au with SMTP; 3 Feb 2007 21:55:40 +1100 Subject: Re: Backup Strategies? From: Phillip Smith Reply-To: phillip.smith@weatherbeeta.com.au To: pgsql-admin@postgresql.org Content-Type: text/plain Organization: Weatherbeeta P/L Date: Sat, 03 Feb 2007 22:00:56 +1100 Message-Id: <1170500456.9214.12.camel@phillips-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit X-Scanned-By-wbeetaau1: Virus scan performed by network-box X-Scanned-By-wbeetaau1: Scanner file id is wbeetaau1-1170500142.15-28556-000 X-Scanned-By-wbeetaau1: No known viruses found in message (received+scanned in 0.01/0.06 secs) X-Scanned-By-wbeetaau1: Spam-Check-Result: No, hits=0 required=7 tests= autolearn=no version=2.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.851 tagged_above=0 required=5 tests=BAYES_20, FORGED_RCVD_HELO, RCVD_IN_SORBS_WEB X-Spam-Level: X-Archive-Number: 200702/45 X-Sequence-Number: 24510 Have you looked at pg_dump and/or pg_dumpall? That would be the more common way of performing backups. I run 2 backup's nightly of our databases: 1) As part of a backup script, call pg_dumpall as the postgres *nix users and PG user, then pipe the output to a file on a remote server. 2) As a cronjob: pg_dumpall > /dev/st0 Cheers, -p On Sat, 2007-02-03 at 01:51 -0500, Joshua Kramer wrote: > 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 > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster > *******************Confidentiality and Privilege Notice******************* The material contained in this message is privileged and confidential to the addressee. If you are not the addressee indicated in this message or responsible for delivery of the message to such person, you may not copy or deliver this message to anyone, and you should destroy it and kindly notify the sender by reply email. Information in this message that does not relate to the official business of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta. Weatherbeeta, its employees, contractors or associates shall not be liable for direct, indirect or consequential loss arising from transmission of this message or any attachments