Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 6B8E8636C4C for ; Sun, 14 Mar 2010 05:50:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 18974-08 for ; Sun, 14 Mar 2010 08:50:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail137166.authsmtp.co.uk (outmail137166.authsmtp.co.uk [62.13.137.166]) by mail.postgresql.org (Postfix) with ESMTP id 51EDF636C44 for ; Sun, 14 Mar 2010 05:50:31 -0300 (ADT) Received: from mail-c193.authsmtp.com (mail-c193.authsmtp.com [62.13.128.118]) by punt6.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id o2E8oEQ0051693; Sun, 14 Mar 2010 08:50:14 GMT Received: from [192.168.0.4] (88-110-213-69.dynamic.dsl.as9105.com [88.110.213.69]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id o2E8oDra027796; Sun, 14 Mar 2010 08:50:13 GMT Subject: Re: Off-site storage for PITR logs From: Simon Riggs To: Nicos Panayides Cc: pgsql-admin@postgresql.org In-Reply-To: <4B9A6E8B.4050303@magneta.com.cy> References: <4B9A6E8B.4050303@magneta.com.cy> Content-Type: text/plain Date: Sun, 14 Mar 2010 08:50:12 +0000 Message-Id: <1268556612.3825.5025.camel@ebony> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-Server-Quench: 9ae25857-2f46-11df-97bb-002264978518 X-Report-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFaQFbYFhD HGQLWlREUFV7XGN/ agkfZQ1DY0tOQQdr U1ZPS01XHAJ3AVJe BGsWDW0wJgVEf3l5 YwhhX3BTEk0rIER4 SktTCG9QYWF9aWFL Bl1RcFEGbQNKfB1D bll4XHYMaStlM3Bw LCYfGhEXCH14JioQ WQARIBoJXUERFzEx Dx4FB30XPHE/DyE0 IAdO X-Authentic-SMTP: 61633235383639.1014:706/Kp X-AuthFastPath: 255 X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.411 tagged_above=-10 required=5 tests=AWL=0.188, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/91 X-Sequence-Number: 33890 On Fri, 2010-03-12 at 18:40 +0200, Nicos Panayides wrote: > I am planning an off-site backup solution for a fairly busy > (mostly-write) 8.3 database. The database is currently about 200GB in > size. I though about using log shipping and cold standby since it's easy > in terms of administration and also offers point in time recovery. > > The database generates about 3 PITR log files per minute. If my > calculations are correct the sites need to be connected with a 7MBit > connection and the logs will need about 68GB of storage per day! > > Does anyone have any suggestions on how to significantly reduce the > volume of log files or recommend another off-site backup solution that > would require less bandwidth and storage? Consider turning off full_page_writes which will permanently minimise the amount of WAL traffic, as well as being an integrated and fully-supported option with Postgres. You will need additional non-volatile cache on your disks to ensure that is a safe option, though that will yield performance advantages also. -- Simon Riggs www.2ndQuadrant.com