views:

79

answers:

1

Can we take backup of our current database through java programming ?

+4  A: 

You haven't specified what type of database so I'll presume something SQL-ish and accessible over JDBC. If this is the case, DBBackup should do what you want. That said, you might want to use the database-native tool (for MySQL, that's mysqldump; for PostgreSQL, pg_dump) as it'll probably be quicker, more reliable and so on.

Tom Morris