Scheduling Database Backup

You may need to schedule an automated database backup that will recur periodically. To do this, first of all, you will need to create a project file, containing backup settings. Once the project file is created, you have to schedule Windows task that will perform actions at a specific time or when a certain event occurs.

Creating a project file

  1. On the Database menu, select Backup and Restore, and then click Backup Database.
  2. Specify Connection, Database, Path, Output filename. Click Next.

    General Backup Options

  3. Select backup content. Click Next.

    Backup Content

  4. Select detailed backup options. Click Next.

    Detailed Backup options

  5. Set the Errors handling and Log settings options. After that, click Save and either select Save Project to save a backup project or Save Command Line to save a backup script that you can later execute from the command line.

    Errors handling tab

Scheduling Windows task

  1. Start Task Scheduler for Windows.
  2. Select Action -> Create Basic Task on the top menu.
  3. Provide Name for the new task. Click Next.
  4. Select one of the options when you want the task to be started. Click Next.
  5. Select time and frequency for starting the task. Click Next.
  6. Select Start a Program and click Next.
  7. Enter path to the dbforgemysql.com file in Program/script. (The default path is C:\Program Files\Devart\dbForge Studio for MySQL\dbforgemysql.com.)

    Start Scheduling

  8. Also, make sure to specify arguments in the Add arguments field as follows:
/backup /connection:User Id=yourusername;Host=db;Port=3309;Database=sakila;Character Set=utf8; /projectfile:C:\Users\Documents\dbForge Studio for MySQL\Export\sakila.backup
  1. Click Next.
  2. Check all specified settings once again and, if no changes are required, click Finish. Otherwise, click Back and make the needed changes.

    Finish Scheduling

Want to Find out More?

Overview

Overview

Take a quick tour to learn all about the key benefits delivered by dbForge Studio for MySQL.
All Features

All features

Get acquainted with the rich features and capabilities of the Studio in less than 5 minutes.
Request a demo

Request a demo

If you consider employing the Studio for your business, request a demo to see it in action.
Ready to start using dbForge Studio for MySQL?