Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DB Backup - MySql

 
yaron re
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I create DB Backup to a dump file or zip file from java code?
I can only create "sql" files. while the file i need is "zip" or "dump".
Is there any way doing that???
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simplest way would be turn it into a two part process:
Take the .sql file you have produced and run it through a zip file creation process.

here is instructions to get you started with zip file creation:
Creating a ZIP file
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic