Pre/Post commands
Acronis True Image 2017
About Acronis I want to create a backup of my C: drive. The backup is stored on my NAS. Before Acronis starts to create the backup, the NAS must be powered up. For this I wrote a batch.
Here is the simple variant (Pre Command):
@echo off
wol.exe [IP] #Start WakeUpOnLan
timeout /t 100 /nobreak #Wait 100 seconds
The script works through the CMD, but not in Acronis:
Error Massage: Running the user command failed.
Has somebody a idea?
Is it possibility that the CMD is started in the background? So you can not see the console?


- Log in to post comments

Another thing to try is to name the your script as a bat file not a cmd file.
- Log in to post comments

Hi guys,
thank you for your answer.
Wake Up on Lan is required because my Synology (NAS) is not always on. Without Acronis, the batch works. I think Acronis has a problem with the waiting time. The configuration is very simple. Nevertheless, I have attached a screenshot. With .cmd it is the same problem.
I try it with PowerShell. Perhaps there is no problem with Acronis or the waiting time.
Attachment | Size |
---|---|
407065-137398.png | 16.5 KB |
- Log in to post comments

Robert, have you got Auto poweroff enabled on your Synology NAS to require the WOL packet to bring it back to standby?
Asking because I do not have this enabled on mine, just the Advancded HDD hibernation to minimise power consumption and have not had any problems with backups waking the drives for backups without using WOL.
Attachment | Size |
---|---|
407067-137401.png | 50.16 KB |
- Log in to post comments

Hi Steve,
to minimize the power consumption, my Synology runs completely into the standby. I need the Synology rarely, so I start them via WOL. If the Acronis Backup is finished, I switch it off again (Past Command). This works without problems.
- Log in to post comments

To simplify things, why not use windows scheduled tasks to execute the wake-on-lan command for the NAS? If it can't wake up the NAS, Acronis won't be able to either. If it does work, then set your scheduled task in Windows to run 1 minute before your scheduled task in Acronis. Feel free to keep the wake task in your backup script as well - just in case, should your scheduled backup run at a different than anticipated time because it missed the normal schedule.
- Log in to post comments