ATIH 2011 Tasks do not run at system shutdown
When I schedule a backup task to run At System Shutdown, it does not run. The system shuts down without performing any backups.
This happens both in Windows XP and in Windows 7.


- Log in to post comments

Have you checked the log file for any error messages?
Is the task destination pointed to an external drive?
- Log in to post comments

Good suggestions, thanks.
I tried the task manually and it completes fine but the log contains "Unable to open data stream" and "The task completed with errors". I should note that the destination is an FTP server.
When I set this up I found out (through trial and error) that Acronis needs write access to the top level directory of the ftp server. The account I am using has that. Are there any other requirements?
I'll try triggering it on shutdown tomorrow.
- Log in to post comments

I have had the Unable to open data stream error. It went away after I repaired the installation.
Also, try to run the task on a regular schedule first to be sure everything works.
- Log in to post comments

I re-ran the installation in "Repair" mode but the symptoms remain the same. Running the task manually works and when I Validate the backup it comes out OK. But the task itself does not complete. The PC goes to sleep and when I wake it up, it logs the "Unable to open data stream" error. I am attaching the log file.
Is there a way to get the FTP log? I am beginning to suspect something goes wrong when closing the session.
- Log in to post comments

OK. Let's verify this is about the FTP destination then. Can you run this task to a local disk? If yes, it is about your FTP connection.
You can get the log this way
- Log in to post comments

Yes, locally it works fine.
I found the FTP log, not sure what to make of it though. See attached.
- Log in to post comments

I had a look at the log and you can see ATI is looking for the remote22.tib file but cannot get it. On the server, there is only remote and remote2.
Is it a full backup?
It looks like ATI got lost in its file management for some reason... I don't know why.
I would set up a new backup on a different destination folder and see it if works...
NB: Interesting to see some change directory to /.../.../remote.tib. Why is a change directory passing a file path parameter? Anyway...
- Log in to post comments

I created a new backup; same symptoms.
But the backup validates successfully and I am able to recover files from it. So I guess the error messages are just noise.
- Log in to post comments

I had the problem of acronis not waking up the computer, even though I had the Wake Up checked in the advanced settings in the "Schedule your operation" page. Also my computer would go to sleep during the backup, and would not resume until I woke it up. It did not have the same problem as yours, it would continue on with no problem. Problem was I don't want the backup to wake up when I need to use the computer the next day. My backup runs at 6:00.
To solve this problem I did the following:
1. A minute before the backup is scheduled to run, I have a batch job scheduled that will wake the computer up and set the power plan to one which is set to "never sleep".
2. The backup runs fine now and my computer does not go to sleep.
3. Then I have another batch job that runs about 4 or 5 hours after the acronis backup starts. It resets my power plan to the one I want.
Here are my batch files, if anyone is interested:
Open notepad and create a file, preferably under the C: drive and not in a folder. This is so you can remember where it is. It will run from any folder. I named mine "WakeUpAndSetNoSleep.bat". In this file, enter the following:
rem wake up from sleep mode
start /high /B /wait "Wake up" /c "exit"
rem set power plan to High Performance (this one is set to sleep never)
start /high /B /wait powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
The long string of characters right after "-setactive" is called the GUID of the plan you want to set to. This was my GUID but yours will be different. To get the GUID you want to use do the following:
Go to the command prompt. I am using Windows 7, so I click on Start and type cmd. The command window should open up.
Type this command:
powercfg -list
Then press enter.
This will show all of your power plans and show their GUID's. Replace mine, above with your GUID that allows no sleep.
Go to "task scheduler" (under administrative tools, or in the control panel). Schedule this task to start about a minute before your backup is scheduled.
Then create another .bat file and enter the following (I called mine "SetSleep.bat":
rem set power plan back to the one you like
powercfg -setactive 49ef8fc0-bb7f-488e-b6a0-f1fc77ec649b
Schedule this in "task scheduler" to run sometime after you estimate the backup will be finished.
I agree, it is sorry that I had to do this, but it was the only thing I could think of to get it to run without sleeping. I saw another article on the web, that showed how to not use the acronis scheduler, but to schedule the job myself. If I could make it work, then I could make a batch job and put all of the command in one .bat file and only schedule it. However his article was in reference to acronis 2010 and the things he said to work with (go to file so and so, and do this...) were not the same in 2011, so I couldn't figure out how to make my own command to run the acronis backup, myself.
If anyone is doing this, or knows how to setup their own schedule task to run acronis 2011, let me know.
The above sounds a little messy, but it is really no problem to set it up. Maybe this will help someone else who is having the same problems, I had.
- Log in to post comments