restoreFrom=Path

Function

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. The logDevice attribute can be used in conjunction withrestoreFrom=Path to store logs in a different location.

Combining with other attributes

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

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