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
-
- Expert
- Posts: 231
- Liked: 22 times
- Joined: Feb 26, 2019 12:08 pm
- Full Name: Gianluca Croci
- Contact:
-
- Veeam Software
- Posts: 3625
- Liked: 608 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
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!
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!
-
- Expert
- Posts: 231
- Liked: 22 times
- Joined: Feb 26, 2019 12:08 pm
- Full Name: Gianluca Croci
- Contact:
Re: Post Job script only when backup completed
Hello Petr,
thank's a lot for your reply.
Kind regards
thank's a lot for your reply.
Kind regards
Who is online
Users browsing this forum: Bing [Bot] and 92 guests