Creating backup after recovery via Batch-File with post-command
Hey Guys,
i would like to ask you if it is possible to run a backup process via post-command (Batch-File) right after the recovery of the image has successfully completed.
The backup should have the "single version" backup-schema and no planning options activated.
Thanks in advance for your help!
Julian


- Log in to post comments

Hello Steve,
thank you for your respone!
There is following constellation:
I have created an image with no planning and one version backup-schema. The script-id of the generated acronis script is inserted in a batch-file to start the backup-process for this image with the determined settings by opening the batch-file.
When i'm testing the two batch-files (Wait.cmd and Backup_Script.cmd) in the acronis application i got successfull results. Also when testing the files itself in windows environment, it starts the backup process as required (replace and delete the previous image and making new image of the current system).
When i start the recovery process in Acronis the workflow should go like:
1. Task
Executing Wait.cmd
2. Task
Doing recovery process => Reboot Computer -> Recovery Execution -> Booting Computer
3. Task
Executing Backup_Script.cmd
Task 1 and 2 are succesfull but after the recovery when the computer is booting to Windows 10, task 3 won't get started. It just does nothing although the batch-file is working when testing it on acronis.
Maybe you can help me, thanks in advance!
Julian
- Log in to post comments

Julian, thank you for the new information and screen image.
"Task 1 and 2 are succesfull but after the recovery when the computer is booting to Windows 10, task 3 won't get started. It just does nothing although the batch-file is working when testing it on acronis."
How exactly are you triggering Task 3 for the Backup_Script.cmd?
Also, just for clarification, for Task 2 - are you manually launching a Recovery from within Windows using the ATI GUI? If so, does the backup image you are recovering have the same Pre/Post commands stored in the C:\Program Data\Acronis\TrueImageHome\Scripts folder / .tib.tis file for the matching task script identifier used in the command?
- Log in to post comments

Hey Steve,
--- Starting Recovery Process via ATI GUI Windows manually with following options: ---
1. Starting Acronis ATI GUI Windows
2. Recovery
3. Open Recovery Options
3.a Setting pre-command (Wait.cmd) to execute before recovery process is starting ... (Test successful)
3.b Setting post-command (Backup_Script.cmd) to execute after recovery has finished (Test successful)
4. Starting Recovery and following process is going to be launched by Acronis GUI:
Task 1/3 => Wait.cmd
- Windows is rebooting after 1 Minute -
Task 2/3 => Recovery
- Recovers the image before booting Windows -
Task 3/3 => Backup_Script.cmd - Not Working
- After windows has started the script is not going to be executed -
Backup_Script.cmd - File
---------------------------------
@echo off
rem change directory to Acronis exe and launch application
cd "C:\Program Files (x86)\Acronis\TrueImageHome"
rem launch exe and starting backup script
start TrueImageLauncher.exe /script:08DE7B15-284D-4940-9FB3-A8A9BCA9775D
---------------------------------
"If so, does the backup image you are recovering have the same Pre/Post commands stored in the C:\Program Data\Acronis\TrueImageHome\Scripts folder / .tib.tis file for the matching task script identifier used in the command?"
The script-ID 08DE7B15-284D-4940-9FB3-A8A9BCA9775D is equal to the script-ID (08DE7B15-284D-4940-9FB3-A8A9BCA9775D.tib.tis File) in the script folder "C:\Program Data\Acronis\TrueImageHome\Scripts"
It's definetely the right script-id because i only have one image and one script-file. Batch-File itself is working, but it seems there is a problem to get it run over post-command by acronis.
Thanks in advance!
Julian
- Log in to post comments

Julian, again, thank you for the further clarification of the steps you are following.
3.a Setting pre-command (Wait.cmd) to execute before recovery process is starting ... (Test successful)
3.b Setting post-command (Backup_Script.cmd) to execute after recovery has finished (Test successful)
I believe that when you are setting a post command for your backup script in the recovery task in Windows before the recovery is performed, that this is no longer present when the recovery has been performed, as this was only a temporary task.
To be totally honest, I had never considered even trying to use Pre/Post Commands in a recovery task, not least because I never do this type of recovery from within Windows, but prefer to use my WinPE Rescue Media for such tasks.
The ATI 2018 User Guide does say that this process using Pre/Post Commands for Recovery options should be possible, so there are a couple of reasons why this may not be working for you.
It may be a 'bug' that causes the Post command to be lost following a recovery.
It is possible that the path to the Post Command has changed at this point in the recovery. You could try storing the post command in the Scripts data folder that will also be present in the image being restored.
- Log in to post comments