Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 59807 invoked from network); 8 Mar 2006 01:26:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Mar 2006 01:26:00 -0000 Received: (qmail 94078 invoked by uid 500); 8 Mar 2006 01:25:59 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 94049 invoked by uid 500); 8 Mar 2006 01:25:59 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 94038 invoked by uid 99); 8 Mar 2006 01:25:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Mar 2006 17:25:59 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 07 Mar 2006 17:25:58 -0800 Received: (qmail 59627 invoked by uid 65534); 8 Mar 2006 01:25:37 -0000 Message-ID: <20060308012537.59626.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r384085 - in /db/derby/docs/trunk/src: adminguide/cadminhubbkup01.dita adminguide/cadminhubbkup63476.dita adminguide/cadminhubbkup75469.dita adminguide/cadminhubbkup98797.dita adminguide/cadminrollforward.dita ref/refderby.ditamap Date: Wed, 08 Mar 2006 01:25:36 -0000 To: derby-commits@db.apache.org From: fuzzylogic@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: fuzzylogic Date: Tue Mar 7 17:25:35 2006 New Revision: 384085 URL: http://svn.apache.org/viewcvs?rev=384085&view=rev Log: DERBY-916: Document DERBY-239, online backup. Committed for Jeff Levitt Modified: db/derby/docs/trunk/src/adminguide/cadminhubbkup01.dita db/derby/docs/trunk/src/adminguide/cadminhubbkup63476.dita db/derby/docs/trunk/src/adminguide/cadminhubbkup75469.dita db/derby/docs/trunk/src/adminguide/cadminhubbkup98797.dita db/derby/docs/trunk/src/adminguide/cadminrollforward.dita db/derby/docs/trunk/src/ref/refderby.ditamap Modified: db/derby/docs/trunk/src/adminguide/cadminhubbkup01.dita URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/adminguide/cadminhubbkup01.dita?rev=384085&r1=384084&r2=384085&view=diff ============================================================================== --- db/derby/docs/trunk/src/adminguide/cadminhubbkup01.dita (original) +++ db/derby/docs/trunk/src/adminguide/cadminhubbkup01.dita Tue Mar 7 17:25:35 2006 @@ -1,4 +1,5 @@ + Using the backup procedure to perform an online backup -The SYSCS_UTIL.SYSCS_BACKUP_DATABASE procedure locks the database so that any connection trying to write to the database will be frozen until the backup completes. Database reads can continue while the backup is running. +Use the SYSCS_UTIL.SYSCS_BACKUP_DATABASE procedure to perform an +online backup of a database to a specified location. Backup procedureSYSCS_BACKUP_DATABASE() system procedure -

The SYSCS_UTIL.SYSCS_BACKUP_DATABASE procedure -takes a string argument that represents the location in which to back up the -database. Typically, you provide the full path to the backup directory. (Relative -paths are interpreted as relative to the current directory, not to the derby.system.home directory.)

-

For example, to specify a backup location of c:/mybackups/2005-06-01 for a database that is currently open, use the following statement (forward slashes are used as path separators in SQL commands):

+

The SYSCS_UTIL.SYSCS_BACKUP_DATABASE procedure takes a string argument +that represents the location in which to back up the database. Typically, +you provide the full path to the backup directory. (Relative paths are interpreted +as relative to the current directory, not to the derby.system.home directory.)

+

For example, to specify a backup location of c:/mybackups/2005-06-01 for +a database that is currently open, use the following statement (forward slashes +are used as path separators in SQL commands):

CALL SYSCS_UTIL.SYSCS_BACKUP_DATABASE('c:/mybackups/2005-06-01')

The SYSCS_UTIL.SYSCS_BACKUP_DATABASE() procedure puts the database into a state in which it can be safely copied, then copies the entire original database directory (including data files, online transaction log files, and -jar files) to the specified backup directory. Files that are not within the original -database directory (for example, derby.properties) are not copied.

-

The following example shows how to back up a database to a directory with a name -that reflects the current date:

+jar files) to the specified backup directory. Files that are not within the +original database directory (for example, derby.properties) are not copied.

+

The following example shows how to back up a database to a directory with +a name that reflects the current date:

public static void backUpDatabase(Connection conn)throws SQLException { // Get today's date as a string: @@ -51,11 +55,25 @@ cs.close(); System.out.println("backed up database to "+backupdirectory); } -

For a database that was backed up on 2005-06-01, the previous commands copy the current -database to a directory of the same name in c:/mybackups/2005-06-01.

+

For a database that was backed up on 2005-06-01, the previous commands +copy the current database to a directory of the same name in c:/mybackups/2005-06-01.

Uncommitted transactions do not appear in the backed-up database.

Do not back up different databases with the same name to the same backup directory. If a database of the same name already exists in the backup directory, it is assumed to be an older version and is overwritten. +

The SYSCS_UTIL.SYSCS_BACKUP_DATABASE procedure will issue an error if there +are any unlogged operations in the same transaction as the backup procedure.

+

If any unlogged operations are in progress in other transactions in the +system when the backup starts, this procedure will block until those transactions +are complete before performing the backup.

+

Derby automatically converts unlogged operations to logged mode if they +are started while the backup is in progress (except operations that maintain +application jar files in the database). Procedures to install, replace, and +remove jar files in a database are blocked while the backup is in progress.

+

If you do not want backup to block until unlogged operations in other transactions +are complete, use the SYSCS_UTIL.SYSCS_BACKUP_DATABASE_NOWAIT procedure. +This procedure issues an error immediately at the start of the backup if there +are any transactions in progress with unlogged operations, instead of waiting +for those transactions to complete.

Modified: db/derby/docs/trunk/src/adminguide/cadminhubbkup63476.dita URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/adminguide/cadminhubbkup63476.dita?rev=384085&r1=384084&r2=384085&view=diff ============================================================================== --- db/derby/docs/trunk/src/adminguide/cadminhubbkup63476.dita (original) +++ db/derby/docs/trunk/src/adminguide/cadminhubbkup63476.dita Tue Mar 7 17:25:35 2006 @@ -1,4 +1,7 @@ + + - - + Online backups - - + -

Use online backups to back up a database while it is running. During the -interval that the backup is running, the database can be read, but writes to the -database are blocked.

-

You can perform online backups by using the backup procedure or by using operating systems commands with the freeze and unfreeze system procedures.

-
+

Use online backups to back up a database while it is running.

+

You can perform online backups by using several types of backup procedures +or by using operating systems commands with the freeze and unfreeze system +procedures.

+ +
Modified: db/derby/docs/trunk/src/adminguide/cadminhubbkup75469.dita URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/adminguide/cadminhubbkup75469.dita?rev=384085&r1=384084&r2=384085&view=diff ============================================================================== --- db/derby/docs/trunk/src/adminguide/cadminhubbkup75469.dita (original) +++ db/derby/docs/trunk/src/adminguide/cadminhubbkup75469.dita Tue Mar 7 17:25:35 2006 @@ -1,4 +1,5 @@ +