Copyright © Acronis, Inc., 2000-2009
15
Comments
– Backup plan comments. For a centralized backup plan, the value in this column is
the same as in the
Comments
column for the corresponding backup policy.
ManagedEntityType
– The type of the machine whose identifier is given in the
ManagedEntityID
column:
PHYSICAL MACHINE
– The machine is a physical machine.
VIRTUAL MACHINE
– The machine is a virtual machine.
OwnerUID
– The unique identifier of the user who owns the backup plan
ID
– The unique identifier of the backup plan
PolicyID
– For a centralized backup plan: the unique identifier of the backup policy on which the
backup plan is based.
Note:
For a local backup plan, this column identifies an equivalent of the backup policy, which uniquely
corresponds to the backup plan. Through this column, the
BackupPlans
view is linked with the
TaskActivities
view (p. 21)—see the
PolicyID
column in that view.
ManagedEntityID
– The unique identifier of the physical machine on which the backup plan exists
HostID
– The unique identifier of the agent that runs the backup plan's tasks
5.5
Archives and backups
5.5.1
Description
The
ArchivesAndBackups
view contains the list of all backups in all archives from all the
managed
vaults. It is possible to track the relationship of an archive to the managed vault.
Each entry in the view corresponds to a backup. Archive-specific columns, such as
ArchiveType
or
NumberOfFullBackups
, contain information about the archive in which the backup is contained; their
content is the same for all backups in the archive.
Backups of virtual and physical machines are combined in this view. To differentiate them, you should
join this view with the
Machines
view and filter the result by the machine type.
5.5.2
Query samples
The following query returns the list of all full backups that are bigger than 10 GB:
SELECT * FROM ArchivesAndBackups WHERE
BackupDataSize > 10 * 1024 * 1024 * CAST(1024 AS BIGINT) AND
BackupType = 'FULL'
Note:
The
CAST
function is used here because the value of 10 GB falls outside the
INT
type domain.
The following query returns the list of all archives that were created more than a year ago but do
not contain any backups created within the past month:
SELECT * FROM ArchivesAndBackups A WHERE
DATEDIFF(yy, ArchiveCreationTime, GETUTCDATE()) > 1 AND
NOT EXISTS(SELECT * FROM ArchivesAndBackups WHERE DATEDIFF(mm,
BackupCreationTime, GETUTCDATE()) <= 1 AND ArchiveID = A.ArchiveID)