Script to quit a backup without generating an error.
Hi,
On the latest versions of Acronis True Image or on Acronis Cyber Protection, the "do not execute if drive is not attached" function does not exist.
How to skip the backup for which the storage medium is not attached without throwing an error, so that I only receive a notification if it fails for a real cause?
A few years ago, Steve had proposed a small script to run in pre-command (for another problem) :
echo-off
if not exist Y:\ goto nodrive
exit /b 0
:nodrive exit /b 1
but it generates an error which triggers a notification.
Is it possible to modify this script so that it exits the backup without error ?
Thanks.
Stéphane.


- Log in to post comments

Hi Steve.
Thanks for your help.
Unfortunately, running backups via scheduled tasks is not an option, it would be too much work.
Could you still help me?
Would it be possible to "kill" the backup task in case the storage medium is not connected, via a script like this:
echo-off
if not exist Y:\ goto nodrive
exit /b 0:nodrive
pskill 8F01AC13-F59E-4851-9204-DE1FD77E36B4
exit /b 0
I tested this type of script without success, but maybe it is not well written or the backup ID is not the right one.
Hence this other question, how to determine task ID with Acronis Cyber Protect Cloud? I couldn't find the equivalent of the "Scripts" folder on my PC.
Thanks.
Have a good day.
Stephane
- Log in to post comments

I think that trying to kill the Acronis task from a Pre Command within the same task would cause more issues that it solves and could even cause a system crash potentially.
Windows has no knowledge of the Acronis task script identifiers you used in the pskill command as it is being run via an Acronis executable (which varies according to the type of backup being made).
For finding the script ID's - I would recommend using the MVP Assistant tool which will display this information for you on the Acronis Configuration panel of the tool when you select a task.
Shown as the Backup Task UUID: in the right side panel.
MVP Assistant - New 2.0 with Rescue Media Builder (New Version 2.4.2)
- Log in to post comments

Hi Steve.
Thanks again for your answer.
I think I've to wait for an evolution of Acronis, so that the function is (re)introduced ...
Best regards.
Stéphane.
- Log in to post comments