How to take backup automatically after certain number of records in a table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandhu236
    New Member
    • Jul 2007
    • 9

    How to take backup automatically after certain number of records in a table

    Hi all,
    Can anyone please help me..to take backup automatically from the frontend application (Java swing) after certain number of records

    REgards,
    SAndhya
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by sandhu236
    Hi all,
    Can anyone please help me..to take backup automatically from the frontend application (Java swing) after certain number of records

    REgards,
    SAndhya
    After the code for inserting a record is executed then call a method which checks the number of records and does the backup if the required number of records have been reached.

    Comment

    • sandhu236
      New Member
      • Jul 2007
      • 9

      #3
      thanx ...
      that's fine that I place amethod to check for the recordcount but ...what is the procedure for taking the backup.
      I can see only the command like this...
      mysqldump -u sadmin -p pass21 Customers > custback.sql
      How can I execute the command in the method.???


      Regards,
      sandhya

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by sandhu236
        thanx ...
        that's fine that I place amethod to check for the recordcount but ...what is the procedure for taking the backup.
        I can see only the command like this...
        mysqldump -u sadmin -p pass21 Customers > custback.sql
        How can I execute the command in the method.???


        Regards,
        sandhya
        You can run that command from Java using the Runtime class

        Comment

        Working...