Backing up and restoring databases
a way to back up a database while it is either offline or online. You can also
restore a full backup from a specified location.
To back up a database, you can do any of the following:
To restore a database from a backup copy, you must use one of three
connection URL attributes:
- Backing up a database
You can back up a database either offline (when it is shut down) or online (when it is running).
- Restoring a database from a backup copy
To restore a database by using a full backup from a specified location, specify the restoreFrom=Path attribute in the boot time connection URL.
- Creating a database from a backup copy
To create a database from a full backup copy at a specified location, specify the createFrom=Path attribute in the boot time connection URL.
- Roll-forward recovery
Derby supports roll-forward recovery to restore a damaged database to the most recent state before a failure occurred.