Running script regardless of backup success
I currently have a batch file running when my TIH 2014 backup succeeds. Is it possible to have that batch file run regardless of whether the backup succeeds or fails?


- Log in to post comments

It conditionally shuts down the computer. So it can't run before the backup. Instead of just guessing at a time when the backup is done, though, I'd like it to always run when the backup completes. Can TIH do that?
- Log in to post comments

If the backup runs, then yes, the script would launch. The questions would be why is the backup failing, or not running? As long as it does, then your post command should kick off just fine. I haven't used 2014 in ages so can't remember if it was an available configuration, but this option is built directly into current versions as well.
- Log in to post comments

It fails when I change my Windows password but forget to update the TIH scheduled job with the new password. Is there a way to prevent that from happening?
I want to use the script instead of the built in functionality (which 2014 does have) because my script is more sophisticated and has some logic built-in.
- Log in to post comments

If the option is not in 2014, use a post command and open notepad
@echo off
shutdown /s /t 30
exit
change /t 30 to a shorter or longer time period (this is 30 seconds in case you need to manually abort you have some time to do a shutdown /a).
or to shutdown immediately
@echo off
shutdown /p /f
exit
save as shutdown.bat and then point the post command to the script.
- Log in to post comments

Eliezer Broder wrote:It fails when I change my Windows password but forget to update the TIH scheduled job with the new password. Is there a way to prevent that from happening?
I want to use the script instead of the built in functionality (which 2014 does have) because my script is more sophisticated and has some logic built-in.
I'm not sure about 2014. In 2019, the backup script runs with the logged on admin account. Normally, if you change the password for the user account, you should log out of the account and log back in with it so that Acronis launches with the new password when it runs.
- Log in to post comments

...So back to my original question: can TIH run my batch file regardless of the backup's success or failure?
- Log in to post comments

My understanding is that if the backup does not run or fails, the post command will not apply. Hence, my recommendation to run the script as a scheduled task. Although this may be a guess, if you want the machine to be off after hours, run it as as scheduled task at a set time.
That way, if the backup runs, then the post script will too and it will shutdown.
If the backup doesn't run, then the scheduled task can still run at a reasonable after hours time and shutdown the computer anyway.
- Log in to post comments

- Log in to post comments