

Used only when creating a backup to the Microsoft Azure Blob Storage. CREDENTIALĪpplies to: SQL Server (starting withSQL Server 2012 (11.x) SP1 CU2). Specifies options to be used with a backup operation. Is a placeholder that indicates that a single BACKUP statement can contain up to three MIRROR TO clauses, in addition to the single TO clause. The number of devices in the MIRROR TO clause must equal the number of devices in the TO clause.įor more information, see "Media Families in Mirrored Media Sets" in the Remarks section, later in this article. Is a placeholder that indicates that up to 64 backup devices may be specified in a comma-separated list. For more information about block size, see "BLOCKSIZE" later in this topic. In order to mirror backups to devices that have different sector sizes, the BLOCKSIZE parameter must be specified, and should be set to the highest sector size amongst all the target devices. If the MIRROR TO disk is formatted with a different sector size than the disk specified as the primary backup device, the backup command will fail. Also review the option for SQL Server backup to URL for S3-compatible object storage.įor MIRROR TO = DISK, BACKUP automatically determines the appropriate block size for disk devices based on the sector size of the disk. Backup and restore to S3-compatible storage was introduced in SQL Server 2022 (16.x), see SQL Server backup and restore with S3-compatible object storage.For a tutorial, see Tutorial: SQL Server Backup and Restore to Microsoft Azure Blob Storage. SQL Server Backup and Restore with Microsoft Azure Blob Storage.The URL format is used for creating backups to Microsoft Azure Blob Storage or S3-compatible object storage. Specifies a disk file or tape device, or a URL. | FILEGROUP = Īpplies to: SQL Server (URL starting with SQL Server 2012 (11.x) SP1 CU2)

Back up all the databases on an instance of SQL Server (a server) Back up the transaction log (full and bulk-logged recovery models) Also, under the full recovery model or bulk-logged recovery model, backs up the transaction log of the database to create a log backup (BACKUP LOG). Backs up a complete SQL Server database to create a database backup, or one or more files or filegroups of the database to create a file backup (BACKUP DATABASE).
