Comprehensive data protection for all workloads
Post Reply
GianlucaCroci
Expert
Posts: 214
Liked: 20 times
Joined: Feb 26, 2019 12:08 pm
Full Name: Gianluca Croci
Contact:

Post Job script only when backup completed

Post by GianlucaCroci »

Hello,

we'd like to be able to run a batch file after finishing a backup job for a particular server.

1. can we run this batch only on one or two servers saved from a backup job of 50?
2. can we run this batch only when the backup is successful? therefore check within the batch that the backup of that particular server has been completed and then condition whether or not to continue with the subsequent lines of the batch.
3. except for the operations that must be performed, for this type of operation there are preferences whether to use a .CMD batch script or a .PS1 PowerShell?
4. better [Storage -> Advanced -> Scripts -> "run the following script after the job"] or [Guest Processing -> Applications -> server -> Edit -> Scripts -> "Post-thaw Script"] options ?

Thank's in advance for your answers.
Kind regards
PetrM
Veeam Software
Posts: 3264
Liked: 528 times
Joined: Aug 28, 2013 8:23 am
Full Name: Petr Makarov
Location: Prague, Czech Republic
Contact:

Re: Post Job script only when backup completed

Post by PetrM »

Hi Gianluca,

1. Yes, you can. The post-job scripts are executed on the backup server but you can call another script remotely on a specific VM from post-job script.
2. Yes, you can. You may query the result of a specific task by using this cmdlet.
3. It's up to you but .PS1 is easier to integrate with existing built-in Veeam cmdlets.
4. You should use the post-job scripts as post-thaw script will be triggered right after the snapshot is created but you need to run your script after the backup is completed.

Thanks!
GianlucaCroci
Expert
Posts: 214
Liked: 20 times
Joined: Feb 26, 2019 12:08 pm
Full Name: Gianluca Croci
Contact:

Re: Post Job script only when backup completed

Post by GianlucaCroci » 1 person likes this post

Hello Petr,

thank's a lot for your reply.

Kind regards
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 108 guests