Trying to get job history of a job when the verify is running as a separate job via powershell
I am running a powershell script from the post-job command. It calls powershell.exe and then uses -file and -noninteractive to run the script. The script calls get-bejobhistory on the currently running job to get it's completion status. The script runs on the media server, and is supposed to run after the verify, which is a separate job. The purpose is to re-run the job up to three times, then fail out. To get started I am just get the history of the job and saving it to a .CSV file. The problem is after the job runs regardless of status, I have a blank file, 0 bytes. When I run it from powershell it works perfectly. Obviusly when I run the script the job is not running. Is there a way to get this working? Here is the very simple script: $LastRun = Get-BEJobHistory -name "BAUERDB2 VIRTUAL SERVER BACKUP-differential" -FromStartTime $(get-date -uformat "%m/%d/%y") -FromLastJobRun $LastRun | export-csv -path C:\Users\public\Documents\BAUERDB2-Diff.csv -notypeinformation932Views0likes1CommentPowerShell Take Jobs Off Hold
I need to take a group of jobs off hold. I'm looking for a way to do this via PoSH script, but have not yet stumbled across a feature to do this. Do you have any suggestions on how to do this? I'm not sure how the jobs got put on hold. The Job Engine System Service stopped responding, don't know why.I would like to: 1) query which jobs have been suspended / superceded / are awaiting for the next Full Backup to run first. 2) if appropriate, reactivate the job Thanks much - Ray1.3KViews0likes2CommentsGet-BEBackupDefinition Times Out, Aggravating
When I launch Get-BEBackupDefinition19 times out of 20 it fails with a 'time out' error; this makes it difficult to modify Backup Jobs via PoSH. Can you help? To this point, every script I have found via Google on how to modify a backup job first needs output fromGet-BEBackupDefinition. Is there another PoSH method to modify backup jobs? Please, Please? If not, any idea whyGet-BEBackupDefinitiontimes out on me. I have been playing with it for two months and it has returned job definition less than 10 times. Because we have 70 backup definitions, I cannot wait for it to work. I really prefer to script wholesale modifications instead of do them by hand. I have tried to runGet-BEBackupDefinition: via BE Management Command Line Interface on the server (via RD Desktop); in a remote PoSH session in PoSH ISE from my workstation desktop (loading BEMCLI first); run it immediately after restarting the backup host server; made sure not to have the Backup Exec management application open anywhere at all. A 'timeout' error is usually either cannot connect, or the data set is too large to read within a preset period.Is part of the problem that our definition database is too big? I appreciate any help you can give. Thanks much. - Ray481Views0likes0CommentsBackup exec 2016 & Dell Compellent
Is there a way to backup Dell Compellent volumes, directly i did hear a while ago that you could do this by copying/mounting the volume/snapshot to the backup server and backing it up from there, i think it is all powershell scripting but wouldnt knwo where to start.1.5KViews0likes2CommentsBEMCLI
In the GUI you can backup a DFS file structure by making sure user defined shares is ticked. Is there a way you can get BEMCLI to see the DFS tree to backup or a UNC path, as everytime, i try to run a command with -path \\servername\share\folder\ it thinks the share is a volume when executing and fails. is it even possible via BEMCLI, as there is nothing on the help files or the good old internet.1.1KViews0likes2CommentsBEMCLI - Get Jobs with "DeleteSelectedFilesAfterSuccessfulBackup"
Hi, Im trying with BEMCLI over Powershell to get all Jobs where "DeleteSelectedFilesAfterSuccessfulBackup" is set. It easy to set witthSet-BEFullBackupTask, but which Get command I have to use? Thanks and best regards, Kurt1KViews0likes2Comments