apache > db
Apache DB Project
Font size:      

Restoring a Database from a Backup Copy

Restoring a Database from a Backup Copy

You can specify the restoreFrom=Path attribute in the boot time connection URL to restore a database using a full backup from the specified location. If a database with the same name exists in the derby.system.home location, the whole database is deleted, copied from the backup location, and then restarted.

The log files are copied to the same location they were in when the backup was taken. ThelogDevice attribute can be used in conjunction with restoreFrom=Path to store logs in a different location. For Example, to restore the toursDB database using a backup copy in c:\mybackups\sample, the connection URL should be:


Previous Page
Next Page
Table of Contents