What operating system are you using? It is possible to call System (and
database) commands within java to execute the mysqldump script. For
example for basically any operating system you can execute a
Runtime.getRuntime().exec(String cmdline)

Tom Kochanowicz


-----Original Message-----
From: Frank Burns [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 19, 2004 8:05 AM
To: Tomcat Users List
Subject: Database backups initiated from Tomcat

Hi,

I have an urgent requirement where I have to initiate a database backup
(of
three mySQL tables) prior to performing an upload and update of the
database.

The preferred method of backing up is to use the mysqldump script.

Can anyone:

1) tell me whether this is possible -- i.e., running the mysqldump
script
from a servlet

2) give me any clues/details on the best way to do this?

Thanks,

Frank.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to