I need netbackup to run a script, which was created on a Linux server
Hello, I have the following problem. I would like netbackup to run a script, which was created on a Linux server (Redhat) The script is already ready, I just need the netbackup through a schedule to run this script I created. How could I do this, is it possible?Solved1.3KViews0likes4CommentsVSR Scripting - How to get Image Job Network User
Hi, I have successfully used the example powershell scripts that come with VSR 18 to script creating backup jobs, that back up to a network drive. I am now trying to write a script to get each ImageJobs NetworkUser and then change the NetworkPassword. I have spent a day trying to find how to get an ImageJobs NetworkUser but have failed. Please will someone help me out. See below for the script I am trying to get to work. Many Thanks, Josonic # I have got the system volume as $oVolume, and therefore its ID ForEach($ImageJob in $v2iAuto.ImageJobs) { Write-Host $ImageJob.Displayname # shows displayname correctly Write-Host $ImageJob.Location # shows 'IImageLocation Location (string) {get} {set}' Write-Host $ImageJob.Location($oVolume.ID) # shows 'The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))' Write-Host $ImageJob.Location($oVolume.ID).Path # shows 'The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))' }Solved1.4KViews0likes1CommentNeed help on how to script an "alternate location" backup for a specific server (VM) weekly
Hello, this is my first post, I do browse the forums everyweek though. ;) Here's my problem, I do this very manual "restore" to an alternate location for a server that needs a second backup copy every single week, (with different host (VM), different display name, etc). I was wondering if it was possible to script/schedule this sort of backup to happen weekly. Right now it is very time consuming and laborous to do this every week and was wondering if any shortcuts were available. Let me know if its possible to script something like that! Thanks, etn842Views0likes2CommentsAutomate / Script System Recovery Policy Creation
Hi Gurus, Would like to seek for your advice regarding our current situation - deploy VSR 2016 on 3 sites with about 80 - 200 machines each. No VSR central management. Backup will be dumped to shared drive. We've gone past the installation part, but I would like to ask for your advice / suggestions how to go about automating / scripting creation of backup policies. Only a handful will have peculiar backup selection/destination/retention, so it would be extremely helpful if we can automate creation of policies for similar machines.2.1KViews0likes7CommentsAbout bpstart_notify.bat.
Hi all. Iwant to netbackup running to backup and then bpstart_notify script create test folder or file(example -> test.txt)which in C:\etc. What should i add sentence to bpstart_notify.bat file? Help! Let me know... @REM $ Id: bpstart_notify.bat, V 1.3 8 January 2006 PM 08 hour 46 minutes 43 seconds $ @REM ************************************************ *************************** @REM * $ VRTScprght: Copyright (C) 2016 Veritas Technologies LLC. All rights reserved VT25-0977-2658-84-51-3 $ * reserves @REM ************************************************ *************************** @REM Ecpyrght @REM @REM Bpstart_notify.bat @REM @REM This script when bpbkar to have been started on the client is called by NetBackup @REM To do a backup or archive. @REM @REM This script, will receive the six parameters. @ REM% 1 = CLIENT_NAME @ REM% 2 = POLICY_NAME @ REM% 3 = SCHEDULE_NAME @ REM% 4 = SCHEDULE_TYPE, following one: FULL, INCR, CINC, UBAK, UARC @ REM% 5 = STATUS, always 0 @ REM% 6 = RESULT_FILE @REM This script must be present on the inner in the same directory as the other parts of the NetBackup @REM @REM Client binary files (bpstart_notify.bat of install_path \ NetBackup of \ bin \ of). @REM Also, must be the root user can run. @REM Is terminated with a 0 if successful @REM @REM Naming conventions: There are three versions of the name that @REM script can be used. Start notifies a script that can be used 1 version, termination, notification that the script used @REM @REM Another, or they will be able to both use the same version. @REM Use "" that have been NetBackup policies and @REM substitute "of sched policy" @REM Schedule name. "Bpstart" can be replaced with a "bpend". @REM Bpstart_notify.policy.sched.bat @REM Bpstart_notify.policy.bat @REM Bpstart_notify.bat @REM @REM Result file: @REM Result file name, it will be dependent on the script file name. @REM Example: @REM Script name: Result file name: @REM Bpstart_notify.policyA.schedB.bat BPSTART_RES.policyA.schedB @REM Bpstart_notify.policyB.bat BPSTART_RES.policyB BPEND_RES bpend_notify.bat @REM @REM @REM Note: You can write what is the standard output and standard error output, backup problems. @REM Output, you need to redirect the results to a file. @REM @REM ------------------------------------------------ -------------------- @REM Main script starts here @REM Is a simple script that records the type of backup to be performed along the this And @REM with other relevent information (client name, such as policy name) @REM Adds the information to the results file @REM ------------------------------------------------ -------------------- @if "%4" == "FULL" goto FULL @if "%4" == "CINC" goto CINC @if "%4" == "" goto FAIL Backup, full, and since not a cumulative incremental, print @ REM general message @echo backup / restore, and began BP_RES.txt \ bpres =% 6 >> bottle to schedule% 3 and status% 5 Use the policy% 2% 1 @echo 0 >>% 6 @GOTO: EOF @REM Exit 0 : FULL @echo full backup, it began BP_RES.txt \ bpres =% 6 >> bottle to schedule% 3 and status% 5 Use the policy% 2% 1 @echo 0 >>% 6 @GOTO: EOF @REM Exit 0 @: CINC @echo cumulative incremental backup, began BP_RES.txt \ bpres =% 6 >> bottle to% 1 using the policy% 2% 3 schedule and status% 5 @echo 0 >>% 6 GOTO: EOF @REM Exit 0 : It will fail @REM No schedule type of information was not sent. Failure has occurred. Writes the status 1 to the result file. @echo 1 >>% 6 @GOTO: EOF @REM Exit 02.7KViews0likes10CommentsHow to use SSR 2013 R2 SP3 with PowerShell ?
Hello, I want to use symantec system recovery 2013 R2 SP3 with PowerShell. I use the following Management Console : SSR 2013 R2 SP3 MS. I saw the script on ...\SSR 2013 R2 SP3\Sym_System_Recovery_2013R2_11.1.3.55088_Multilingual_Product\Docs\Automation\PowershellScripts but how is it possible to run successfully ? I want use the scripts to running the backups failed. Thanks for your response. SamirSolved1.3KViews0likes2CommentsBEMCLI Submit-BELinuxMacRestoreJob Use Backup Set From tape
Hi, We have a backup job that backupsto disk. Then we have a stage that duplicate the data to tape. This works perfectly well. We are trying to make a daily script that will restore the backup set that was duplicated to the tape and run a validation script on it. Right now we have this: $sGUID = [System.Guid]::NewGuid().toString() $x = Get-BEStorage -name "Drive 01" $objBEJobhistory = GET-BEjobhistory -JobStatus Succeeded -JobType Duplicate -Name "xxxxxx" -FromLastJobRun â $objBEjob = Submit-BELinuxMacRestoreJob -JobHistory $objBEJobhistory -Storage $x -LinuxMacSelection "/" -RedirectToPath "e:\temp\$sGUID" -AutomaticallyDeleteJob WhenComplete | Wait-BEJob The first problem we have is that the restore is made from the disk instead of the tape. Even if we fed the cmdlet with the job history of the duplicate job and even by forcing the -Storage param. What are we de doing wrong ? What we are trying to achieve with the cli, is easily doable in the GUI. If we click restore, I choose "Files and folder backups from a backup set". Basically, I want to choose a specific backup set and restore only the files that are in that specific backup set. Not all the files up to thatpoint in time... Any help wouldbe appreciated. Thanks in advance â â305Views0likes0CommentsBackup Exec 2015 Post command XML Report
Hi, I am trying to implement a custom "verify job" using a BEMCLI in the "POST COMMAND" config option. I call it using "powershell c:\bat\myscript.ps1" and it gets called so everything works fine. The problem I am having is that I need to be able to parse the xml report that is generated during the job I saw the job ID was set as an environment variable so I read it using sJobID = $env:BE_JOB_ID There is also a second environment variable which is $sXmlFileName = $env:VSR_LOG_FILE_NAME which seems to be the temporary xml report (The name looks like C:\Program Files\Symantec\Backup Exec\Data\VSR_Log_File1.xml" But I can't find the data I need in the reports. It seems the report gets saved AFTER the post command is completed so the file BEX_SERVER06_00025.xml (number gets incremented on each run) is not available... I've been playing with Get-BEJob -id $sJobID | Get-BEJobHistory -FromLastJobRun | Get-BEJobLog Without success... Is there a way to retrieve what files were backuped during the post command phase ? I need to return an error if my custom verify finds something invalid so that the job state is switched to "failed". Any help would be appreciated. Regards797Views0likes5Comments