Re: [Neo4j] Online backups for single instance using community edition

2011-10-13 Thread Peter Neubauer
Johannes,
if you can make sure that no transaction are in progress, then copying
files should work, too. Would that help? You could for instance for a
brief period block mutating requests to your webservice, commit all
transactions and copy the store files.

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Wed, Oct 12, 2011 at 11:43 AM, Haensel thehaen...@gmail.com wrote:
 Hi,

 I am using the neo4j community edition in a PHP webapp that I am currently
 developing and found it to be a really cool solution for my project. It is a
 small project and I am just a single guy developing it so I am nowhere near
 needing HA or sharding capabilities. Here is the problem I see with neo4j in
 any form of webapp (SaaS): To be able to create an online backup you'll have
 to use the enterprise edition (=2000 dollars a month) or you are forced to
 shutdown the service for a short period of time (most likely multiple times
 per day) which can be an absolute no-go for a webapp.

 So my question is: Is there another method of doing an online backup for a
 single neo4j instance? I thought about traversing the whole graph and
 creating a second graph filled with the result. I could then shutdown the
 second instance and just backup the files old school style. This sounds
 super ugly, but maybe it is a way to think about. I am fine with solutions
 that would require some additional developing.
 If the only solution is to use the enterprise edition than I would highly
 suggest some alternative ways for the next neo4j releases as this would
 prevent a lot of webdevelopers from using the product. It would be nice to
 have a way to do online backups for a single instance only so the benefits
 of the advanced and enterprise editions would still exist.

 Anyways, thanks for your time and answers

 Greetings from Austria,

 Hannes

 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/Online-backups-for-single-instance-using-community-edition-tp3415246p3415246.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Online backups for single instance using community edition

2011-10-13 Thread Haensel
I thought about that, yes, but I think it can easily become tricky in my
case. If it is the only way than I have to do some magic at the application
layer to tell users that they currently can't post comments but the read
access would be vital.

What about exporting a graph with g.saveGraphGML('backuped.xml')? I could do
this by using curl to post to the gremlin plugin but I am not quite sure how
this is implemented yet. I assume it creates a snapshot of the current graph
without including non finished transactions (which would be fine). If
anything happens to the db I'll read in the exported file again. Is this a
considerable way of solving the issue (for moderately sized graphs) or am I
missing something obvious?

Greetings,

Hannes

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Online-backups-for-single-instance-using-community-edition-tp3415246p3418149.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Online backups for single instance using community edition

2011-10-12 Thread Haensel
Hi,

I am using the neo4j community edition in a PHP webapp that I am currently
developing and found it to be a really cool solution for my project. It is a
small project and I am just a single guy developing it so I am nowhere near
needing HA or sharding capabilities. Here is the problem I see with neo4j in
any form of webapp (SaaS): To be able to create an online backup you'll have
to use the enterprise edition (=2000 dollars a month) or you are forced to
shutdown the service for a short period of time (most likely multiple times
per day) which can be an absolute no-go for a webapp.

So my question is: Is there another method of doing an online backup for a
single neo4j instance? I thought about traversing the whole graph and
creating a second graph filled with the result. I could then shutdown the
second instance and just backup the files old school style. This sounds
super ugly, but maybe it is a way to think about. I am fine with solutions
that would require some additional developing.
If the only solution is to use the enterprise edition than I would highly
suggest some alternative ways for the next neo4j releases as this would
prevent a lot of webdevelopers from using the product. It would be nice to
have a way to do online backups for a single instance only so the benefits
of the advanced and enterprise editions would still exist.

Anyways, thanks for your time and answers

Greetings from Austria,

Hannes

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Online-backups-for-single-instance-using-community-edition-tp3415246p3415246.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user