Skip to main content

Pre/Post commands

Thread needs solution

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?

 

 

0 Users found this helpful

Robert, welcome to these user forums.

Please can you post a screen shot showing how you have configured your Pre-Command options?

Does your NAS really need a Wake on LAN magic packet in order to respond to a backup task which tries to access it?

An alternative approach would be to schedule your WOL command script using the Windows Task Scheduler so that it runs 2 minutes before your Acronis backup task to the NAS.

Another thing to try is to name the your script as a bat file not a cmd file.

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

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

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.

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.