Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 49441 invoked from network); 1 Nov 2007 19:37:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2007 19:37:18 -0000 Received: (qmail 97119 invoked by uid 500); 1 Nov 2007 19:30:19 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 97088 invoked by uid 500); 1 Nov 2007 19:30:19 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 97072 invoked by uid 99); 1 Nov 2007 19:30:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2007 12:30:19 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-mail-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2007 19:30:38 +0000 Received: from fe-emea-09.sun.com (gmp-eb-lb-2-fe1.eu.sun.com [192.18.6.10]) by gmp-eb-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id lA1JTxll018845 for ; Thu, 1 Nov 2007 19:29:59 GMT Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JQU00H01E5D2C00@fe-emea-09.sun.com> (original mail from Dyre.Tjeldvoll@Sun.COM) for derby-dev@db.apache.org; Thu, 01 Nov 2007 19:29:59 +0000 (GMT) Received: from khepri32.sun.com ([129.159.112.244]) by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JQU00FCUE5YKV20@fe-emea-09.sun.com> for derby-dev@db.apache.org; Thu, 01 Nov 2007 19:29:58 +0000 (GMT) Date: Thu, 01 Nov 2007 20:29:57 +0100 From: Dyre.Tjeldvoll@Sun.COM Subject: Re: Derby Backup In-reply-to: <46ACD0E6.8000800@m3tech.com.br> Sender: Dyre.Tjeldvoll@Sun.COM To: derby-dev@db.apache.org Message-id: MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <46ACD0E6.8000800@m3tech.com.br> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.1 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org Francisco Trindade writes: > Hi, > > Im building a system using Apache Derby, and I couldnt find a way to > backup the existing data from the database. > The only procedure I've found in the documentation is to create a > online/offline backup, that copies the existent database to a > different location. > The problem with this approach is that the backup file becomes very > large (15 - 30 MB) in my case, and that's because Im zipping the > database after copying it. > > I was wondering if it doesn't exist a way to create a backup only of > the existent data, and not the whole database, like a dump. > > Does anyone have a suggestion? I could not see that anyone else had answered your question. Appologies if I missed it. Not sure I understand the distinction between "existent data" and the whole database. Are you expecting the backup to be smaller than your database? I don't think there is any automatic compression of the backup image so unless you compress the backup yourself it will be the same size as the database. I don't think Derby supports incremental backups, so each new backup will have roughly the same size. The size of each backup image may be reduced if you compress your tables before making the backup, (see the manual). -- dt