Sys-Admin Forum

DPM ручной запуск бэкапа на кассету

Можно из PowerShell:


param([string] $dpmname, [string] $pgname, [string] $backupoption)
if(!$dpmname)
{
  $dpmname = read-host "DPM-Name"
  }
if(!$pgname)
{
  $pgname = read-host "Protection Group (Daily VM Backup, Directories etc - Only One!)"
  }
if(!$backupoption)
{
  $backupoption = read-host "BackupOption (LongTerm, ShortTerm)"
  }
write-output "Creating $backupoption Recovery Point"

trap{"Error in execution...$_";break}
&{
write-output "Getting protection group $pgname in $dpmname..."
$clipg = Get-ProtectionGroup $dpmname | where {$_.FriendlyName -eq $pgname}

if($clipg -eq $abc)
{
Throw "No PG found"
}

write-output "Getting DS from PG $pgname..."
$backupds = @(Get-Datasource $clipg)

foreach ($ds in $backupds)
{
write-output "Creating Recovery point for $ds..."
$j = New-RecoveryPoint -Datasource $ds -Tape -ProtectionType $backupoption
$jobtype = $j.jobtype
write-output "$jobtype Job has been triggered..."
}

}

Исходная линка:
https://community.spiceworks.com/scripts/show/3928-dpm-2012-r2-run-a-manual-backup-based-on-protection-groups

Офф ман: