原创

Veeam Backup 从数据据删除备份任务

温馨提示:
本文最后更新于 2021年06月08日,已超过 1,246 天没有更新。若文章内的图片失效(无法正常加载),请留言反馈或直接联系我

从数据据删除备份任务

 
 

DECLARE @BackupID uniqueidentifier

SET @BackupID = '4A28B061-0218-4FDE-A8D6-4E1995E34B95' 《--备份JOBID 【Backup.Model.Backups】

 
 

delete [Backup.Model.OIBs] from [Backup.Model.OIBs]

join [Backup.Model.Points] on

[backup.model.oibs].point_id = [backup.model.points].id

where [backup.model.points].backup_id = @BackupID

delete [Backup.Model.OIBs] from [Backup.Model.OIBs]

join [Backup.Model.Storages] on

[backup.model.oibs].storage_id = [Backup.Model.Storages].id

where [Backup.Model.Storages].backup_id = @BackupID

delete from [backup.model.points] where backup_id = @BackupID

delete from [Backup.Model.Storages] where backup_id = @BackupID

delete from [Backup.Model.Backups] where id = @BackupID

 
 

 
 

正文到此结束
本文目录