Get the App
SLTechnology News&Howtos  ›  Database  › 

What is the information of SQL Server when PlateSpin backup?

Shulou Source: shulou.com Published: 2022-05-31 23:40:20 10月17日 Update

This article will explain in detail what the SQL Server information about PlateSpin backup is like. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

When PlateSpin makes DR backups at the server level, the SQL Server log contains the information of "I was resumed on database xxx O is frozen on database xxxx" and "I was resumed on database xxx".

In fact, later found that when the PlateSpin job runs, you will find that the database will record a full backup of the database to Virtual Device in msdb.dbo.backupset. This is also a side evidence! Of course, more detailed, more in-depth aspects of the principle, knowledge points, due to the online PlateSpine information is not much, I do not have time to in-depth understanding. This is just a detail I found when I was collecting backup information. I wondered at that time that I didn't have a full backup or backup to a virtual device (Virtual Device) at that point. After looking for the reason, I found that this had something to do with PlateSpin. Here is a record!

SELECT CONVERT (CHAR, SERVERPROPERTY ('Servername')) AS servername, bs.database_name, bs.backup_start_date, bs.backup_finish_date, DATEDIFF (MINUTE,bs.backup_start_date, bs.backup_finish_date) AS backup_consume_time, bs.expiration_date CASE bs.type WHEN 'D'THEN' Full Backup' WHEN'I 'THEN' Diff Backup' WHEN'L' THEN 'Log Bacup' WHEN' F' THEN 'File Backup' WHEN' G' THEN 'File Diff' WHEN' P' THEN 'Partial Backup' WHEN' Q' THEN 'Partial Diff Backup' END AS backup_type CASE bf.device_type WHEN 2 THEN 'Disk' WHEN 5 THEN' Tape' WHEN 7 THEN 'Virtual Device' WHEN 105 THEN' permanent backup device' END AS backup_media, bs.backup_size/1024/1024/1024 AS [backup_size (GB)], bs.compressed_backup_size/1024/1024/1024 AS [compressed_backup_size (GB)] Bf.logical_device_name, bf.physical_device_name, bs.name AS backupset_name, bs.first_lsn, bs.last_lsn, bs.checkpoint_lsn, bs.descriptionFROM msdb.dbo.backupmediafamily bf INNER JOIN msdb.dbo.backupset bs ON bf.media_set_id = bs.media_set_idWHERE (DATETIME, bs.backup_start_date CAST ('2017-10-18 21 AND 00' AS DATETIME) AND (DATETIME, bs.backup_start_date, 102)

Tags: Backup information article data database time more knowledge relevant good practical corroboration content reason principle just level article aspect log Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Apple macOS NVidia OPPO Reno