Skip to main content

Pre/Post commands run hidden in background

Thread needs solution

Hi there

Been playing around with ATI and the post commands. Specifically I use a .bat that starts a freefilesync batch file which syncs the backup to an external drive.

When testing the command it runs at normal with the progress UI showing. However when I run the backup it runs the command in the background with no UI showing at all. Which means I haven't a clue to the progress of the backup or whether there are any errors or warnings.

Is there any fix for this? I've tried a couple of commands and all of them end without anything being shown - even other programs etc don't get shown.

Also I cannot remove the scheduling from my backups. When I click do not schedule, OK then save nothing changes. It automatically schedules another backup in a week's time.

Frankly quite rubbish tbh.

0 Users found this helpful

Optimus...

Your settings are not being saved because you are not applying them.  In order to apply the settings, you must click on "backup now" or the little carat next to it to schedule later. This is essentially the save button.  In your case, if you don't want to backup now, just click on "later".  Changes will be applied now.

When you normally run the .bat file with your account the "normal" way, are you getting prompted for UAC at all?  If so, that is the issue in Acronis with your post command.  Acronis has no way to accept the UAC so it may not even be running correctly in the background.  This is a limitation (by security design of Microsoft) for UAC.  In order for this to work, you would have to create a scheduled task that can be run manually, point it to the batch file and run with highest privileges, whether or not logged in.  Then create a batch file to that scheduled task and use that at in your post command.

 

 

Attachment Size
348956-127948.jpg 18.05 KB

Hi Bobbo

I will try your fixes and let you know.

Thanks

When creating the bat file, first start Notepad in "run as administrator" mode. Do this each time you use Notepad. When saving the bat file with its content, you need to be running Notepad as admin. That may help.

 

The Windows scheduler can also be used with the Windows Scheduler option "run as admin" checked.

Ok so I got the post command to work by pointing Acronis to a bat that runs a task that runs a bat that runs freefilesync and passes a ffs_batch file as an argument.

However it still won't save the "do not schedule" option. Even if click save and then run the backup.

Is there anyway I can manually remove the schedule? I can't see anything in the XML file.

Have you tried using the Acronis Scheduler Manager utility?

See the section in the KB document on Managing scheduled tasks that will let you see what is there and delete a single task or all tasks as needed.

I reinstalled the acronis scheduler and all seems well.

2 backups configured, one scheduled to run bi weekly and run freefilesync afterwards with errors and such popping up. Other runs on command, running freefilesync afterwards then shutting down.

Nice - thanks all!