Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6554955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:45:41+00:00 2026-05-25T12:45:41+00:00

Our Java server application logs data to a SQL database, which may or may

  • 0

Our Java server application logs data to a SQL database, which may or may not be on the same machine. Currently we use MS SQL Server, and we’re now porting to MySQL. A user configures database backup parameters on our app server, e.g. time of day to run a backup, and the app server executes SQL Server’s BACKUP DATABASE command at the appropriate time, via a sproc. It does incremental backups daily and full backups weekly.

MySQL lacks an equivalent feature to tell the database from a client connection to back itself up. Options we’re considering are:

  • Create a UDF to shell out to mysqldump (or copy database files), which can be called from our app server via a sproc. Essentially we’d be implementing a version of BACKUP DATABASE for MySQL.
  • Create a service to run on the MySQL box that can get the backup settings from the app server and run mysqldump (or file copy) locally.
  • Create a backup sproc to mimic mysqldump, e.g. SHOW CREATE TABLES and SELECT INTO OUTFILE for each table.

Setting up a cron job, Perl script, third-party app or other tricks that’d work great in a data center aren’t preferred; this is a shrink-wrap package that needs to be pretty robust and hands off.

Database sizes can range from roughly 10MB to 10GB.

I’m aware of the binary logs for the incremental piece. I figure the general solution will probably apply to them as well, if we decide to use them.

This is all on Windows 2003 32-bit or 2008R2 64-bit, MySQL 5.1.

The UDF option seems the best to me. The UDF Repository (http://www.mysqludf.org/) has mysqludf_sys, which may be all we need, but I thought I’d ask for opinions since after extensive googling it doesn’t seem like others have reached the same conclusion, or maybe our needs are just out of the ordinary. Our app is the only thing in MySQL, so I’m not worried about other users having access to our UDF.

Any solutions I’m overlooking? Any experience with using UDFs in such a way?

Thanks,
Eric

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:45:41+00:00Added an answer on May 25, 2026 at 12:45 pm

    For this an other reasons we decided to collocate our application with the database, so this problem became moot.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our Java application has about 100 classes mapped to a database (SQL Server or
I am currently developing Java/GWT-application which is hosted on a weblogic application server. I
Our Java code (not the test code) reads files from the current directory, which
Currently our Java application uses the values held within a tab delimited *.cfg file.
We use Tomcat for our java web application. There is a properties file under
On one of our Java application screens, we want to display data loaded from
I've set up ehcache on our Java application, which uses Spring and Hibernate. However,
we have a java server-client application with an applet in the client side. our
I am testing our server-application (written Java) on different operating systems and thought that
One of our Java project needs a redundant data store system which is highly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.