We are using the Powershell to start the Backup Copy jobs with active full, but sometimes, some of the Backup Copy jobs will be finished with "Transferred 0B Reead 0B Processed 0B with success", We have to manually to click active full. How I can fix this issue, the reason why I I am using enable-vbrjob as we disabled the Veeam backup Copy when we are going to reboot the server. if we don't disable the backup copy, we will get an incremental for all the backup copy jobs
Code: Select all
#Local Log file
$LOGFILE = "C:\Temp\Start_Backup_Copy_Log.log"
Function Get-TimeStamp {return "[{0:MM/dd/yyyy} {0:HH:mm:ss}]" -f (Get-Date)}
Function SendToLog {param([Parameter(Mandatory=$true)] [String]$LogMessage) Write-Output "$(Get-TimeStamp) $env:COMPUTERNAME : $LogMessage" | Out-File -Encoding Ascii -Append $LOGFILE}
$jobs = Get-VBRJob | ?{$_.JobType -eq "backupsync"} | Sort-Object name
foreach($job in $jobs){
$jobsname=$job.name
Enable-VBRJob -Job $job
Sync-VBRBAckupCopyJob -job $job -FullBackup
SendToLog "VEEAM BACKUP COPY JOB ENABLING: $jobsname"
SendToLog "VEEAM BACKUP COPY JOB STARTING: $jobsname"
start-sleep -Seconds 60
}
SendToLog "End of Script"