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

  • A+
所属分类:默认

从数据据删除备份任务

 
 

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

 
 

 
 

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: