The object provides programmatic access to SQL Server backup devices.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
SQL Server backup devices specify the behavior of specific backup media, usually tape. Backup devices are not required when issuing a BACKUP or RESTORE statement and are not required by the Backup object.
With the object, you can:
Define a new backup device for a server running Microsoft SQL Server.
Change the definition of an existing Microsoft SQL Server backup device.
The BackupDeviceType property must match the definition of the sysnameSQL Server data type.
To get object properties, users can be a member of the public fixed server role.
To set object properties, users must have BACKUP DATABASE or BACKUP LOG permissions on the database, or be a member of the db_owner and db_backupoperator fixed database role and the sysadmin fixed server role.