-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Database Backup
PostPosted: Thu Jan 26, 2006 11:53 am 
Beginner
Beginner

Joined: Tue Apr 19, 2005 9:39 am
Posts: 45
I was wondering if there is a way to backup a mysql database through hibernate. What I want to be able to do is use the web application to make a call to the database to create a database backup file then upload it to my local computer [i.e. mysqldump?]. Is this possible?

Thanks in advance!


B


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 26, 2006 12:22 pm 
Newbie

Joined: Wed Dec 14, 2005 6:50 am
Posts: 17
HI,

What we are doing is: Load any object from the db, serialize them and zip them. To restore we use the session.replicate() method.
Its not a performant solution, but we exchange data between 2 database systems (HSQLDB,MySQL) so its a mutch better way then to use sql scripts. For your case maybe you can just create a sql dump of the db, the file you can zip too.

Hope this helps, let me know.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.