Can you try setting the property "restoreFrom" via datasource property
"connectionAttributes"
eg:
connectionAttributes=";create=true" // can be found in appserver's
DerbyPool
properties
similarly try setting:
connectionAttributes=";create=true;restoreFrom=path"
[I havent tried it, and you may have to remove the property once the
backup is complete.]
Probably, posting a query in apache derby forum will also help.
Thanks,
-Jagadish
On Mon, 2008-05-26 at 09:40 +0200, Paul MERLIN wrote:
> Hi all,
>
> I'm trying to script online backups and offline restore of derby databases
> presents in the derby bundled with glassfish.
>
> Using the backup procedure explained in the derby doc was not hard :
> http://db.apache.org/derby/docs/10.2/adminguide/cadminhubbkup01.html
>
> Now I'm stuck with the restore step which is explained here :
> http://db.apache.org/derby/docs/10.2/adminguide/tadminhubbkup44.html
>
> I'm stuck because the restoreFrom directive has to be given to derby on
> the "boot time connection URL". As I'm starting/stopping derby with
> the "asadmin [start|stop]-stabase" command I wonder how can I add this
> directive on demand.
>
>
> Thanks in advance
>
> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>