X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 45848474E4F for ; Fri, 7 Feb 2003 11:05:20 -0500 (EST) Received: from rambutan.pingpong.net (81.milagro.bahnhof.net [195.178.168.81]) by postgresql.org (Postfix) with ESMTP id 5FE50474E42 for ; Fri, 7 Feb 2003 11:05:19 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by rambutan.pingpong.net (8.12.6/8.12.6) with ESMTP id h17G5NO8061878 for ; Fri, 7 Feb 2003 17:05:23 +0100 (CET) (envelope-from girgen@pingpong.net) Date: Fri, 07 Feb 2003 17:05:23 +0100 From: Palle Girgensohn To: pgsql-admin@postgresql.org Subject: incremental backup of postgres database? Message-ID: <104800000.1044633923@rambutan.pingpong.net> X-Mailer: Mulberry/2.2.1 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; FORMAT=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/117 X-Sequence-Number: 7315 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 with 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 databases? Your input would be much appreciated. Thanks Palle