This article contains instructions on backing up your Veeam ONE SQL database.
This is useful when you have to do a backup before an upgrade or in case you have been asked to provide a backup of Veeam ONE database to Veeam Support for further in-depth analysis.
There are several ways of creating a backup of the database.
Using Veeam ONE Settings Utility (works for local SQL instances only)
To open Veeam ONE Settings utility use one of the options presented below:
- Open VeeamOneSettings.exe in C:\Program Files\Common Files\Veeam\Veeam ONE Settings
- Open the utility via Veeam ONE Monitor client > Options > Server Settings > Other Settings. Once you open the tab, you will find Support utility section. Click the Launch button.
Using SQL Server Management Studio
- Open Microsoft SQL Server Management Studio (may need to be installed separately KB1761).
- Connect to the ServerName\Instance of the server that has the DB you want to back up.
- Expand the Databases tab to get to the DB you want to back up.
- Right click the desired DB > Tasks > Back Up.
- Set Backup Type to Full
- Specify the database file destination by choosing Back up to Disk option > Add the destination path to save the database backup.
- Go to Backup Options and set Set backup compression to Compress backup to reduce the database file size (the option is not mandatory).
- Click OK to start the Backup process.
Using SQL command line
In case you do not have the Management Studio installed, Veeam database can be collected using the SQLCMD utility:
- Open Veeam ONE Monitor client and check the lower part of the window for the SQL instance name and Veeam database name. Alternatively, check the same via Veeam ONE Settings Utility. See Using Veeam ONE Settings Utility (above) for access instructions.
- Open Windows command line or PowerShell prompt and run the following command to create a backup file:for default instances:
sqlcmd -S SqlServerName -Q "BACKUP DATABASE [DbName] TO DISK=N'C:\backups\VeeamONEDB.bak'"
for named instances:
sqlcmd -S SqlServerName\SqlInstanceName -Q "BACKUP DATABASE [DbName] TO DISK=N'C:\backups\VeeamONEDB.bak'"
sqlcmd -U Username -S SqlServerName\SqlInstanceName -Q "BACKUP DATABASE [DbName] TO DISK=N'C:\backups\VeeamONEDB.bak'"