File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes DB Backup - MySql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DB Backup - MySql" Watch "DB Backup - MySql" New topic
Author

DB Backup - MySql

yaron re
Greenhorn

Joined: Jun 29, 2007
Posts: 7
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

Joined: Apr 30, 2003
Posts: 820

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DB Backup - MySql
 
Similar Threads
Backing up database through java
Using ant script for creating DB dump and restoring
Embedding MySQL Database in Java Application
Incremental filename script
Back Up & Restore Database