Skip to main content

Pre/Post Commands Batch Files Not Waiting

Thread needs solution

I've coded some batch files to run before and after ABR10, and the Pre-backup command includes a TIMEOUT command for 5 minutes to allow a background process to do its thing. The batch files tested perfectly outside of Acronis, and I implemented them last night. When I checked this morning, the log indicated that the commands had run successfully, but there hadn't been any pause between the scheduled backup time and the backup procedure beginning (after 6 seconds the log indicates that the command completed successfully).

Any ideas why this is happening?

Thanks for your help!

0 Users found this helpful

Does this timeout works when pre command is tested using 'test' button in options dialog? Was the pre-backup command executed at all during scheduled run (e.g, check it inserting echo 111 > someLogFile in it )

The pre-command seems to be doing everything else that it's supposed to do, it's just not waiting on the TIMEOUT command.

I tried to reproduce it with the following simple bat file -
===
echo 1> file1
timeout 10
echo 1> file2
===

It run before a scheduled and timestamp of the file1 and file2 were different by 10 seconds. Can you check it with a similar .bat file to be sure that other commands in it doesn't influence timeout command (though it would be weird)

a notification posting if there is any followup.
As Fedor Larin indicated, the timing is for seconds so a 5 minutes timeout would require a setting of
timeout 300