- Knowledge Base
- Installation and System Setup
- Installation
-
News
-
Roadmap
-
Installation and System Setup
-
Setup Data Catalog
-
Connectors
-
Data Discovery
-
Self Service
-
Access Management
-
Data Quality
-
Data Literacy
-
Privacy Compliance
-
Reporting
-
Architecture, Security & Releases
-
Developer's Zone
-
Advanced Tools
-
Record of Processing Activities (ROPA)
-
Data Catalog
-
Release6.0 User Guide
-
Release6.1 Deep Dive Articles
-
Release6.1.1 Deep Dive Articles
-
Release6.2 Deep Dive Articles
-
Release6.3 Deep Dive Articles
-
Deactivated_Old
How to Schedule MySQL AutoDB Backup in Windows
This article xplains scheduling automatic database (autodb) backups using Task Scheduler in Windows.
Prerequisites
- You must have Administrator access to the MySQL VM.
- You need the MySQL root password to take the backup.
- (Optional) Ensure the MySQL dump can be moved to an NFS (mount) server.
- Know the name of the MySQL database used by the OvalEdge application.
Steps to Follow
- Create a folder, download the following file, and save it in that folder: https://ovaledge.s3.us-west-1.amazonaws.com/OvalEdge+Clients/European+Commission/backup_mysql.bat
- Now open the .bat file and update the MySQL username, password, hostname, database name, and backup folder path as shown below.
- After adding the details, test the script manually before scheduling it.
- Open Command Prompt, go to the folder with the .bat file and run the script.
- If it runs successfully, the script is working fine.
- Open Command Prompt, go to the folder with the .bat file and run the script.
- Now schedule the backup_mysql.bat file using Task Scheduler. Go to the Windows search bar and open Task Scheduler.
- Click Create Basic Task.
- Enter a name for the task and click Next.
- Enter a name for the task and click Next.
- In the Trigger section, select Daily to run the task every day.
- Set the scheduled time and click the Next button.
- Select Start a program as the action for the task to perform.
- Browser the bat.file
- Check the dialog box and click on the finish button.
- You will find a new window below. Now check the option as shown in the screenshot below. Click on the Ok button.
- Enter the VM password when prompted, and click OK.
- Set the scheduled time and click the Next button.
- Open the Task Scheduler dashboard to verify the task. As shown below, Task Scheduler ran successfully and created the MySQL backup at the scheduled time.
Conclusion
By following the steps in this document, you can automate MySQL database backups using Task Scheduler in Windows. This ensures regular backups without manual effort, helping you secure and restore your OvalEdge data when needed.