createFrom=Path

Function

You can specify the createFrom=Path attribute in the boot time connection URL to create a database using a full backup at a specified location. If there is a database with the same name in derby.system.home, an error will occur and the existing database will be left intact. If there is not an existing database with the same name in the current derby.system.home location, the whole database is copied from the backup location to the derby.system.home location and started.

The Log files are copied to the default location. The logDevice attribute can be used in conjunction with createFrom=Path to store logs in a different location. With createFrom=Path you do not need to copy the individual log files to the log directory.

Combining with other attributes

Do not combine this attribute with rollforwardrecoveryFrom, restoreFrom, or create.

URL: jdbc:derby:wombat;createFrom=d:/backup/wombat
Related reference
bootPassword=key
create=true
databaseName=nameofDatabase
dataEncryption=true
encryptionKey=<key>
encryptionProvider=providerName
encryptionAlgorithm=algorithm
logDevice=logDirectoryPath
newEncryptionKey= <key>
newBootPassword = <new password>
password=userPassword
restoreFrom=Path
rollForwardRecoveryFrom=Path
shutdown=true
territory=ll_CC
user=userName
(no attributes)