We are using the embedded version of v2.2.0-beta and try to setup the 
automatic backup. Since v2.2.0 the documentation says, that it works with a 
separate json file now. I basically just copied the example files 
from http://orientdb.com/docs/2.2/Automatic-Backup.html .

But since we embed it, we generate the json files and store it in a custom 
location that we then pass into the xml:

    <handlers>
      <handler class=
"com.orientechnologies.orient.server.handler.OAutomaticBackup">
         <parameters>
            <parameter name="enabled" value="true" />
            <parameter name="config" value=
"/Users/xyz/backups/orientdb_automatic-backup4141291898931243933.json" />
         </parameters>
      </handler>
   </handlers>

But when starting it crashes with the following stacktrace:
Caused by: com.orientechnologies.orient.core.exception.
OConfigurationException: Cannot find mandatory parameter 'delay'
 at com.orientechnologies.orient.server.handler.OAutomaticBackup.config(
OAutomaticBackup.java:103)
 at com.orientechnologies.orient.server.OServer.registerPlugins(OServer.java
:1082)
 at com.orientechnologies.orient.server.OServer.activate(OServer.java:367)

So it says delay is not in there. But the json contains it. As soon as I 
just add delay in the xml it works. But ignores all the configuration from 
the json.

<parameter name="delay" value="4h" />


So I wonder if the json works already in the beta or if it will be added 
later. Or if the problem is that the json is outside of the orientdb home 
directory. Possible? Doing the same with the hazelcast config files seems 
to work correctly.


For now we just do it the old way adding all the config in the xml. That 
seems to work in v2.2.0-beta.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to