Command-line parameters for Database Backup/Restore Wizard
Updated in 2023.1
Microsoft SQL Server only
Using the command-line parameters allows you to run the Database Backup/Restore Wizard in the non-interactive mode. For example, you can back up and restore the database automatically by creating a Windows Scheduled Task.
The executable file DbBackup.exe
is located in the /Bin
sub-folder of your Alloy Navigator installation folder.
The following table lists the command-line parameters that are available for the Database Backup/Restore Wizard:
Parameter | Description |
---|---|
|
Displays the full list of command-line options in a separate window. |
|
Backs up the database. |
|
Restores the database. |
|
Specifies the SQL Server. |
|
Specifies the Alloy Navigator database to back up or restore. |
|
Specifies whether to log in using Windows authentication. If the option is |
|
The SQL Server login name for a user account to log in to the database (applicable with SQL Server authentication only). |
|
The password for a user account to log in to the database (applicable with SQL Server authentication only). |
|
The full path and name of the backup file. |
All the parameters are case-insensitive.
Examples
-
The following command backs up the
DB_001
database hosted on theSERVER_001
server using Windows authentication and places theDB_001.bkp
backup file to theC:\Program Files\Alloy Software\Alloy Navigator\BackUp\
folder:DbBackup.exe /BACKUP /SERVER=SERVER_001 /DB=DB_001 /WinAuth=TRUE /FILE="C:\Program Files\Alloy Software\Alloy Navigator\BackUp\DB_001.bkp"
-
The following command restores the
DB_002
database on theSERVER_002
server from theC:\Program Files\Alloy Software\Alloy Navigator\BackUp\DB_001.bkp
file using SQL Server authentication:DbBackup.exe /RESTORE /SERVER=SERVER_002/DB=DB_002 /User="user_login" /Password="password"/FILE="C:\Program Files\Alloy Software\Alloy Navigator\BackUp\DB_001.bkp"