This topic gives a detailed description of command-line arguments (switches) that you can use to perform a database backup with the help of the command line or a scheduled Windows task.
dbforgemysql.com /backup [/switch1[:value | [parameter1:value ... parameterN: value]] ... /switchN]
To get a list of arguments (switches) related to database backup in the command-line interface, run the following command:
"C:\Program Files\Devart\dbForge Studio for MySQL\dbforgemysql.com" /backup /?
Note
The default path to the executable file differs depending on how you’ve installed the Studio:
- Standalone tool:
"C:\Program Files\Devart\dbForge Studio for MySQL\dbforgemysql.com".- Part of the dbForge Edge bundle:
"C:\Program Files\Devart\dbForge Edge\dbForge Studio for MySQL\dbforgemysql.com".
Available command-line arguments are listed in the following table.
| Argument | Description |
|---|---|
/connection |
Specifies the connection string. Usage: /connection:"your_connection_string" |
/database |
Specifies the database to back up. Overrides the database specified in the backup project or in the connection string. Usage: /database:"your_database" |
/errormode |
Specifies the application behavior when encountering an error: ignore – ignores all errors and continues execution; abort – cancels execution if an error occurs.Usage: /errormode:ignore|abort |
/outputfile |
Specifies the name of the file for storing the database backup. Overrides the file name specified in the backup project. Usage: /outputfile:"your_output_file" |
/password |
Specifies the server password. Overrides the password specified in the connection string. Usage: /password:"your_password" |
/projectfile |
Specifies the backup project (.backup file) to use. Some options defined in the backup project can be overridden by switches. Usage: /projectfile:"your_backup_file" |
/treatwarningaserror |
Specifies the behavior for treating warnings: yes – treats all warnings as errors, and the subsequent behavior is determined by the /errormode argument; no – doesn’t consider warnings as errors and continues the command-line execution.Usage: /treatwarningaserror:yes|no |