cancel
Showing results for 
Search instead for 
Did you mean: 

PowerShell to determine if a backup is currently running?

Cantor
Level 2

Is it possible using VBScript or PowerShell to determine if the local server is currently being backed up? I've got a script I'd like to schedule regularly but I want it to exit if there is a backup of that server currently running.

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

Hopsnbarley
Level 4
Employee

I assume you mean checking if a system is being backed up via the Backup Exec Remote Agent . If that is what you mean, then you could probably use the command line parametes of the Backup Exec Agent Utility (it is installed as part of the Backup Exec Remote Agent). I'm sure you could script something to run what you want and then check the output.

For details on the command line use of the Agent Utilty:

https://www.veritas.com/support/en_US/article.v53931628_v113799574

View solution in original post

3 REPLIES 3

Hopsnbarley
Level 4
Employee

I assume you mean checking if a system is being backed up via the Backup Exec Remote Agent . If that is what you mean, then you could probably use the command line parametes of the Backup Exec Agent Utility (it is installed as part of the Backup Exec Remote Agent). I'm sure you could script something to run what you want and then check the output.

For details on the command line use of the Agent Utilty:

https://www.veritas.com/support/en_US/article.v53931628_v113799574

For your case you could probably use this command:

ramcmd /status

If a backup is running currently on that system, the Activity field will display "A  Backup Job is Running"

 

Ah I'd not heard of that command before - that looks perfect, thanks!