I used to backup my Symantec Enterprise Vault server using pre&post scripts on Veeam Server, complete guide on how this works posted here in my blog; http://dailyvmtech.wordpress.com/2012/1 ... plication/
The physical server which was hosting Veeam Backup & Replication failed due to hardware error and I rebuild the server from scratch as I wasn't having physical backup image on the server,,, anyway here my question(s) to the issue I'm facing now.
The scripts I used to use are not working even If I run them manually on the Backup server, but works fine on the EVServer which means scripts are working perfectly.
Via Invoke-Command If I run the command manually on the Backup Server (Veeam) it works fine..
Code: Select all
Invoke-Command -ComputerName EVServer -FilePath .\SymantecEV-PretScript.ps1
SymantecEV-PreScript.ps1
Code: Select all
#Pre-job to set the Symantec Enterprise Server and Site into Backup Mode.
#Reset ArchiveBit on the Store Vaults.
DEL "\\EVServer\EVPartition01cc55b2dc699b70$\IgnoreArchiveBitTrigger.old"
DEL "\\EVServer\EVPartition01cc55b2753ddd30$\IgnoreArchiveBitTrigger.old"
DEL "\\EVServer\EVPartition01cc55b34882a450$\IgnoreArchiveBitTrigger.old"
DEL "\\EVServer\EVPartition01cc55b3725ff520$\IgnoreArchiveBitTrigger.old"
#Site: EV Site
#Set backup mode on site
c:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-VaultStoreBackupMode -Name '[b]EVSiteName[/b]' -EVServerName evserver -EVObjectType Site}"
#SiteIndexLocations: EV Site
#Set backup mode on indexes in site
c:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-IndexLocationBackupMode -EVServerName 'evserver' -EVSiteName [b]'EVSiteName[/b]}"
#Start Veeam Backup Job
Add-PSSnapin VeeamPSSnapin
#Add the name of the backup jobs to be included here. The order in which they are entered is the order in which they will run
$chainedjobs = (“SymantecEV”)
foreach ($jobname in $chainedjobs){
$job = Get-VBRJob -name $jobname
$jobtry = 0
start-VBRJob -job $job
$job.GetLastResult()
if($job.GetLastResult() -eq “Failed”){
do{
Start-Sleep 480
Start-VBRJob -job $job -RetryBackup
$jobtry++
}
while(($jobtry -lt 3) -and ($job.GetLastResult() -eq “Failed”))
}
}
Code: Select all
#Post-job to Clear the Backup Mode on the Enterprise Site and EVServer.
#Create IgnoreArchiveBitTrigger.txt
echo "Enterprise Vault Trigger File"> "\\EVServer\EVPartition01cc55b2dc699b70$\IgnoreArchiveBitTrigger.txt"
echo "Enterprise Vault Trigger File"> "\\EVServer\EVPartition01cc55b2753ddd30$\IgnoreArchiveBitTrigger.txt"
echo "Enterprise Vault Trigger File"> "\\EVServer\EVPartition01cc55b34882a450$\IgnoreArchiveBitTrigger.txt"
echo "Enterprise Vault Trigger File"> "\\EVServer\EVPartition01cc55b3725ff520$\IgnoreArchiveBitTrigger.txt"
#Clear backup mode from site
c:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Clear-VaultStoreBackupMode -Name '[b]EVSiteName[/b]' -EVServerName evserver -EVObjectType Site}"
#Clear backup mode from indexes in site
c:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Clear-IndexLocationBackupMode -EVServerName evserver -EVSiteName 'EVSiteName'}"
Code: Select all
PowerShell.exe c:\Scripts\PS1.ps1
In this situation, how I will be able to run the scripts on the Backup Server against EVServer and the scripts located in the backup Server?
Thanks,