X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AC92D475957 for ; Fri, 7 Feb 2003 11:51:47 -0500 (EST) Received: from stan.ringways.co.uk (hub.ringways.co.uk [213.38.87.130]) by postgresql.org (Postfix) with ESMTP id E43DA475956 for ; Fri, 7 Feb 2003 11:51:46 -0500 (EST) Received: from gary.ringways.co.uk ([10.1.1.2]) by stan.ringways.co.uk with esmtp (Exim 3.22 #1) id 18hBr6-0007kI-00; Fri, 07 Feb 2003 17:00:00 +0000 Content-Type: text/plain; charset="iso-8859-1" From: Gary Stainburn Organization: Ringways Garages Ltd To: Palle Girgensohn , pgsql-admin@postgresql.org Subject: Re: incremental backup of postgres database? Date: Fri, 7 Feb 2003 16:49:38 +0000 User-Agent: KMail/1.4.3 References: <104800000.1044633923@rambutan.pingpong.net> In-Reply-To: <104800000.1044633923@rambutan.pingpong.net> MIME-Version: 1.0 Message-Id: <200302071649.38164.gary.stainburn@ringways.co.uk> Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/118 X-Sequence-Number: 7316 On Friday 07 Feb 2003 4:05 pm, Palle Girgensohn wrote: > Hi! > > What would be the best suggestion for incremental backup of a rather large > database, where the bulk data volume consists of large objects. Since > backup will be transmitted over a 2 Mbit/s internet line, we need to > minimize the data flow for each nightly backup. The compressed database > dump file, when dumped with pg_dump -F c -b, is roughly 2.5 GB, whereas a > dump without large objects is roughly is only 2% that size. I can live wi= th > having to transfer the BLOB-less dump every night, but not several > gigabytes of data... > > So, I will either need to find a way to get the latest data (I have > timestamps for all LOBS) and somehow get it to a file in a restorable > format... One simple way would be to select all new blobs into a temp file > and copy that table to a backup file > > or > > replicate the database in real time to the backup site, using one of the > replication projects? How robust are the replication systems today? What > will happen if the 2Mb/s line fails temporarily? > > Perhaps there are other ideas for incremental backup of postgres database= s? > Your input would be much appreciated. > > Thanks > Palle Just of the top of my head, have you looked at 'diff'ing the archive, e.g. diff yesterday.sql today.sql |gzip -c >diff.sql.gz to see what sort of file you'll be looking at. I'm looking at using a simi= lar=20 system here, although I don't have LOBS. Gary > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org --=20 Gary Stainburn =20 This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000=20= =20=20=20=20