BACKUP
copies database, file or log out
What changes
- Input
- database, file or log
- Output or change
- backup device, file or URL
Syntax at a glance
BACKUP DATABASE { database_name | @database_name_var } TO <backup_device> [ , ...n ] [ <MIRROR TO clause> ] [ next-mirror-to ] [ WITH { DIFFERENTIAL | <general_WITH_options> [ , ...n ] } ] [ ; ]
Work example
An incident plan needs a full, differential, or log backup at a defined recovery point.
Check recovery model, backup chain, destination capacity, encryption, retention, and restore order.
Check your work A separate lab restore reaches the required point and meets the stated recovery objectives.
Open Microsoft Learn for full syntax, permissions, and details for your version.