Can logical logs be used to restore a neo4j db to a previous state?

143 views
Skip to first unread message

Padraig Elliot

unread,
Oct 28, 2013, 5:23:47 PM10/28/13
to ne...@googlegroups.com
Can the logical logs neo4j creates and stores in graph.db be used to restore neo4j db to a previous state?  Specifically, if changes are made to the db and then committed, is there a procedure I can initiate which would restore the db to its logical state before those changes were made?  Thanks.

Axel Morgner

unread,
Oct 28, 2013, 7:11:31 PM10/28/13
to ne...@googlegroups.com
In theory, yes. But you need to know exactly what changes were made in and after the commit.

If it's about data of any serious value, you should definitively consider to approach Neo Technology Support, which is the most capable and professional technical support team I ever encountered.


Am 28.10.2013 22:23, schrieb Padraig Elliot:
Can the logical logs neo4j creates and stores in graph.db be used to restore neo4j db to a previous state?  Specifically, if changes are made to the db and then committed, is there a procedure I can initiate which would restore the db to its logical state before those changes were made?  Thanks.
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


--

Axel Morgner
CEO Structr (c/o Morgner UG) · Hanauer Landstr. 291a · 60314 Frankfurt · Germany
Twitter: @amorgner
Phone: +49 151 40522060
Skype: axel.morgner

Structr - Award-Winning Open Source CMS and Web Framework based on Neo4j
Structr Mailing List and Forum
Graph Database Usergroup "graphdb-frankfurt"

Mattias Persson

unread,
Oct 29, 2013, 3:35:52 AM10/29/13
to Neo4j Development
Yes, but...

So, the logical log in neo4j is really a physical log. It stores the "after" view of the affected records, so it can only be used to go forward in time.

Having said that there are of course techniques to jump backwards in time to a previous backup and from there apply logs forward until you get to the desired transactionID/time. Although that solution requires isolated backups to be made at frequent points in time and a bit more work for finding from which point in the log stream to start applying from.

In the upcoming 2.0 version there will be some types of records also having the "before" view of affected records, but only for those absolutely needing it; not all. There have been thoughts about adding before/after for everything and this would be one of the uses cases for making that happen.

Best,
Mattias


2013/10/28 Padraig Elliot <padrai...@gmail.com>
Can the logical logs neo4j creates and stores in graph.db be used to restore neo4j db to a previous state?  Specifically, if changes are made to the db and then committed, is there a procedure I can initiate which would restore the db to its logical state before those changes were made?  Thanks.

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Mattias Persson, [mat...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
Reply all
Reply to author
Forward
0 new messages