backup_database
Back up a SQL Server database to a .bak file, choosing full or differential backup, with optional compression.
Instructions
Backup a SQL Server database to a .bak file with optional compression
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"databaseName": "<databaseName>",
"backupPath": "<backupPath>"
},
"name": "backup_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backupPath | Yes | Full path for the backup file (e.g., /var/opt/mssql/backup/mydb.bak) | |
| backupType | No | Backup type: FULL or DIFFERENTIAL (default: FULL) | |
| description | No | Optional description for the backup | |
| databaseName | Yes | Name of the database to backup |