Database Wizard: Command Line Options
On this page
Along with the graphical user interface, the "Database wizard" module can be used for control with the command line.
This feature can be useful if the Windows Scheduler, which has more advanced capabilities than the scheduler built into the "Event manager" module, is used as the task scheduler for backing up a database or restoring from a backup.
Database Backup
AnDBWiz.exe
/BACKUPDB
/FOLDER: <Destination folder 1>; <Destination folder 2>
/TYPE:<Backup type>
/BACKUPCOUNT: <Number of files in the destination folder>
/BACKUPDB
This parameter specifies that the "Database wizard" module shall perform a database backup. The backup procedure settings are set by the command line parameters following it.
/FOLDER: <Destination folder 1>; <Destination folder 2>
One or several folders to which the database backup will be saved. At least one folder shall be specified. The names of the folders shall be enclosed in quotation marks. If section folders are specified, they shall be separated by a semicolon. It is allowed to use absolute paths in folder names.
/TYPE:<Backup Type>
The type of backup to be created. If this parameter is set to "0", it indicates fast backup. If this parameter is set to "1", it indicates full backup. The parameter is optional. If the parameter value is not set, fast backup will be created.
/BACKUPCOUNT: <Number of files in the destination folder>
This parameter specifies the maximum number of database backup files in the destination folder. If you find that the number of backup files of the same type exceeds the maximum possible number when creating a backup, the oldest backup file will be deleted. The parameter is optional. If the parameter value is not specified, the value for this parameter will be 10.
Restoring Database from Backup
AnDBWiz.exe
/RESTOREDB
/FOLDER: <Source folder>
/TYPE:<Backup type>
/RESTOREDB
This parameter specifies that the "Database wizard" module shall restore the database from a backup. The database restoration settings are set by the command line parameters following it.
/ FOLDER: <Source folder>
The folder to which the backup of the database will be restored. If several backup files of the specified type are found in the specified folder, then the restoration from the most recent file creation will be performed.
/TYPE: <Backup Type>
The type of backup from which the database shall be restored. If this parameter is set to "0", it indicates fast backup restoration. If this parameter is set to "1", it indicates full backup restoration. The parameter is optional. If the value of the parameter is not set, then the restoration from the fast backup will be performed.
Example of Using Command Line Parameters
AnDBWiz.exe
/BACKUPDB
/FOLDER:"E:\Backup Data\Operational";"\\Storage\Andromeda Backup\Operational"
/BACKUPCOUNT:25
The above mentioned set of command-line parameters means that the "Database wizard" module shall create a fast copy of the database and copy it to the folders E:\Backup Data\Operational and \\Storage\Andromeda Backup\Operational.
When copying a backup to the destination folder, the "Database wizard" module shall check that the total number of online backup files in the destination folder does not exceed 24, and if there are more, the oldest backup file shall be deleted.