New feature for OrientDB Server: automatic backups

385 views
Skip to first unread message

Luca Garulli

unread,
Oct 5, 2011, 2:11:39 PM10/5/11
to orient-database
Hi all,
in SVN trunk it's available an interesting feature for OrientDB server: automatic backups. Just enabled it and OrientDB will create backups for installed databases in transparent way.

http://code.google.com/p/orient/wiki/AutomaticBackup

To configure it add this snipped in your orientdb-server-config.xml file between handlers:


<!-- AUTOMATIC BACKUP, TO TURN ON SET THE 'ENABLED' PARAMETER TO 'true' -->
<handler class="com.orientechnologies.orient.server.handler.OAutomaticBackup">
 
<parameters>
   
<parameter name="enabled" value="true" />
   
<parameter name="delay" value="4h" />
   
<parameter name="target.directory" value="backup" />
   
<parameter name="target.fileName" value="${DBNAME}-${DATE:yyyyMMddHHmmss}.json" />
   
<parameter name="db.include" value="" />
   
<parameter name="db.exclude" value="" />
 
</parameters>
</handler>

Lvc@

Alessandro Nadalin

unread,
Oct 5, 2011, 2:14:06 PM10/5/11
to orient-...@googlegroups.com
On Wed, Oct 5, 2011 at 8:11 PM, Luca Garulli <l.ga...@gmail.com> wrote:
> Hi all,
> in SVN trunk it's available an interesting feature for OrientDB server:
> automatic backups. Just enabled it and OrientDB will create backups for
> installed databases in transparent way.
> http://code.google.com/p/orient/wiki/AutomaticBackup

so much love for you :)

> To configure it add this snipped in your orientdb-server-config.xml file
> between handlers:
>
> <!-- AUTOMATIC BACKUP, TO TURN ON SET THE 'ENABLED' PARAMETER TO 'true' -->
> <handler
> class="com.orientechnologies.orient.server.handler.OAutomaticBackup">
>
>
>   <parameters>
>     <parameter name="enabled" value="true" />
>
>
>     <parameter name="delay" value="4h" />
>
>
>     <parameter name="target.directory" value="backup" />
>
>
>     <parameter name="target.fileName"
> value="${DBNAME}-${DATE:yyyyMMddHHmmss}.json" />
>
>
>     <parameter name="db.include" value="" />
>
>
>     <parameter name="db.exclude" value="" />
>
>
>   </parameters>
> </handler>
>
> Lvc@
>

--
Nadalin Alessandro
www.odino.org
www.twitter.com/_odino_

Adolfo Rodriguez

unread,
Oct 5, 2011, 2:37:21 PM10/5/11
to OrientDB
uhmm, I had "created the place" to build my own "automatic-backup"
mechanism. I was thinking in using the CRUD triggers for some of the
most sensitive data or something like that.

I have to integrate it with this new feature and provide my feedback.
Very interesting.

Thanks,

Adolfo




On Oct 5, 8:14 pm, Alessandro Nadalin <alessandro.nada...@gmail.com>
wrote:

TheSweetlink

unread,
Oct 5, 2011, 7:24:02 PM10/5/11
to OrientDB
VERY very cool. Can't wait to test it!

-David

On Oct 5, 2:11 pm, Luca Garulli <l.garu...@gmail.com> wrote:
> Hi all,
> in SVN trunk it's available an interesting feature for OrientDB
> server: *automatic
> backups*. Just enabled it and OrientDB will create backups for installed
> databases in transparent way.
>
> http://code.google.com/p/orient/wiki/AutomaticBackup
>
> To configure it add this snipped in your *orientdb-server-config.xml* file

Shantaram Gaikwad

unread,
Jul 23, 2013, 5:23:57 AM7/23/13
to orient-...@googlegroups.com
Hi Luca,
   This is a great feature. I have applied as per the backup parameter and its working for me. A concern is its configuration file based. Hence when we want to change the backup plan then I need to restart the server to get the effect. Is there any sweet alternative without restarting the server.
    I am using "OrientDB Server v1.3.0".

Disclaimer: I am new to OrientDB. But want to deploy it in production.

Thanks,
Shantaram

Luca Garulli

unread,
Jul 23, 2013, 2:05:08 PM7/23/13
to orient-database
Hi,
now the configuration is loaded at the beginning, but we could support it. Could you open a new issue please?

Lvc@



--
 
---
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 orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Hung Tran

unread,
Apr 23, 2014, 4:34:55 AM4/23/14
to orient-...@googlegroups.com
Hi Luca,

I got confusion here, is it a fully backup or incremental backup? how could i restore database from these files? do we have OrientDB-SQL commands to perform a backup and restore a database?

My Best,
Hung Tran

Luca Garulli

unread,
Apr 23, 2014, 5:14:12 AM4/23/14
to orient-database
Hi,
it's always full backup (incremental backup will be in 2.1). To restore it use the console (or Java API):

orientdb> restore database /temp/mydb.gz

Lvc@


--

---
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 orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hung Tran

unread,
Apr 23, 2014, 6:48:12 AM4/23/14
to orient-...@googlegroups.com
Hi Luca,

Thank you very much for your confirmation. It is quite clear now.

My Best,
Hung Tran

Hung Tran

unread,
Apr 21, 2016, 10:28:36 AM4/21/16
to OrientDB

Hi Luca,

I have tried to enable it on OrientDB 2.1.8, but i got errors in Server console.





Am I missing any step? Any help will be very appreciated!

My Best,
Hung Tran

Luca Garulli

unread,
Apr 21, 2016, 11:20:05 AM4/21/16
to OrientDB
Is ORIENTDB_HOME variable configured correctly? Can the user that runs OrientDB write on that directory?

Best Regards,

Luca Garulli
Founder & CEO


Hung Tran

unread,
Apr 25, 2016, 12:44:07 AM4/25/16
to OrientDB
Hi Luca,

I have checked the ORIENTDB_HOME variable and write permission, they are fine, but backup still says this error.

I am using OrientDB 2.1.9 community version on Ubuntu 14.04.3 LTS trusty.

Any help will be very appreciated!

My Best,
Hung Tran
Reply all
Reply to author
Forward
0 new messages