Salta al contenuto principale

Batch Commands for ATI Home 11.0

Thread needs solution

When installed on WinXP the following command was successful:

START "" /WAIT "C:\Program Files\Common Files\Acronis\TrueImageHome\TrueImageHomeService.exe" /script:"...script file path..."

My new PC uses Vista Home Prenium 64-bit SP-1 and Acronis True Image Home 11.0 (build 8,101)

A new manual backup script is at:

C:\ProgramData\Acronis\TrueImageHome\Scripts\538CBEBA-3D4A-40EF-88FC-A28DBCB1BDAC.tib.tis"

TrueImageHomeService.exe is not installed.

What is the proper command line to run a manual backup using this script ?

0 Users found this helpful

Perhaps these paths might help. My services are started so this works for me as a starter for a manual backup.

You might try something like this (2009-4946) with your script number.

C:\Documents and Settings\All Users\Application Data\Acronis\TrueImageHome\Scripts\57100A97-6A12-45D0-A80C-3C79D28BF44C.tib.tis

Even with the ".tis" file associated with ATI all that I accomplish is starting ATI BUT no script operation starting.

Note that I am using Vista 64 bit and files are in a different location than your XP.

The script works when started manually thru ATI but not thru a batch.

I have now changed to ATI Home 2009 v 9.796 because I was using an older version.

I made a new task and attempted to run it using a simple batch with only the following command:

START "" "C:\Program Files (x86)\Acronis\TrueImageHome\TrueImage.exe" /script:"C:\ProgramData\Acronis\TrueImageHome\Scripts\3F5E69C2-2F6B-4BB3-8A10-477BC1E1FEF7.tib.tis"

It would NOT start the task so I have removed the ATI backup from my own batch and instead made an ATI task/script to run at the desired time and retain four incremental backups. It runs Saturdays at 0400 so I will find out soon.

Manually ran the new task and it made the image expected.

Saturday will tell but I would still prefer to do it via command line in a batch.

Eric

Eric,

Using the exact code below (nothing added or removed), I can run it successfully as a

Windows Scheduled Task.

or Window Desktop Shortcut

or as a batch file from the command line.

"C:\Program Files\Common Files\Acronis\TrueImageHome\TrueImageHomeService.exe" /script: "C:\Documents and Settings\All Users\Application Data\Acronis\TrueImageHome\Scripts\21CD6550-C67F-4F98-99A1-618B7D2AED92.tib.tis"

I am running XP Pro SP3 TI 2009-9796. All TI normal install services installed and running.

The batch file contains only the command as you see it.

Why wait until Saturday. Run the file manually "now" back to back several times until you have the number of incremental's you want.  What do you want to happen after the 4 inc's? Are you going to save multiple backups or do you plan to have TI overwrite?

As I indicated in my last post I did run ATI manually from within ATI but I was waiting for Saturday to see what would happen using an ATI scheduled task.

It ran OK but it seems that there are some duplication issues probably from my script which I will investigate.

In WinXP running any of these will work: (1) Start "" /Wait ... OR (2) Start "" ... OR (3) without Start

With Vista (I am using 64-bit) I cannot find a way to run a task directly in ST like one can in XP. Selecting Run in this OS starts the task BUT it waits for the scheduled time to take the desired action.

the main problem in my OS is that none of the various commands, IN A BATCH, will work. They ALL start ATI but will NOT run the script. In my tests ONLY setting up a scheduled task WITHIN ATI works. I would like to run from a batch but I cannot find a way to do it.

Have you tried using a .CMD file instead of a .BAT file? They get processed differently by Windows.

RoadBlock:

The path to TI's scripts in Vista is C:\ProgramData\Acronis\TrueImageHome\Scripts\ and you would start the task in a batch file with the command "C:\Program Files\Common Files\Acronis\TrueImageHome\TrueImageHomeService.exe" /script:"C:\ProgramData\Acronis\TrueImage\Scripts\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.tib.tis" with the appropriate file name substituted for xxxx... Also, it is important to create your TI backup script with Do not start automatically checked off; your batch file will trigger the script.

I had written an article last year about automating TI backups in Vista. Once you understand how the Vista Task Scheduler works you will find it to be very powerful. Perhaps you can use it to solve the problem that you are having with the Acronis scheduler.

The main focus of the article was to create a scheduled backup task that would wake the PC while you were sleeping and run the task. Even if you don't want to do it this way you may find some of the instructions and illustrations helpful. Ignore the parts of the article about waking the PC, and using the "StayAwake" utility. This utility was written by my neighbor to overcome a problem with Vista Task Scheduler. Microsoft has since released a patch to correct the problem that the utility fixes. Also, the problem is fixed in Windows 7.

The article is here.

I am using Vista Home Premium 64-bit SP-1 and Acronis True Image Home 2009 v 9.796

ATI installed in "Program Files (x86)" in the following manner:

- TrueImage.exe in "C:\Program Files (x86)\Acronis\TrueImageHome\"

- TrueImageHomeService.exe in "C:\Program Files (x86)\Common Files\Acronis\TrueImageHome\"

- My script (no schedule) in "C:\ProgramData\Acronis\TrueImageHome\Scripts\"

I have manually run BOTH a test.bat AND a test.cmd using both TI.exe and TIHS.exe with AND without the "/script:...." and with AND without "start "" ...".

All of these tests run the ATI GUI but do NOT start the script. Using the same script with a schedule within ATI succeeds.

Anymore suggestions ?

Eric:

When you run the TrueImageHomeService from a batch file, the GUI should not open. Normally you will only see the tray icon showing that a backup is taking place.

Have you checked the Acronis logs to see why your command is failing? Open the GUI and explore the log.

Coincidentally, I was just setting up an automated script on my machine yesterday and couldn't understand why I was having trouble getting it to run. The log was very helpful (it turned out to be a permissions issue).

When testing on Vista, are you running from an elevated command prompt? To open an elevated command prompt, type "CMD" in the search box and then right-click on cmd.exe and choose "Run as administrator".

Once you start the command from a Vista Scheduled Task you can set the task up to "Run with highest privileges" to insure that it runs with administrative privileges.

In addition to what Mark has suggested....

For testing, you might try adding two comands  to your batch file temporarily:

"Echo On"  without the quotes as the first line

"Pause" without the quotes as the last line. If Exit is the last line, place pause prior to the exit command.

These should cause you to be able to see the whatever messages are appearing after the batch file runs.

Don't overlook the possibility of an user error. I wasted two hours testing and finally found a typo when corrected allowed the batch file to succeed.

Richard:

Yes. Vista Task Scheduler and Windows 7 Task Scheduler are virtually identical. The commands for starting a TrueImage script may differ between the different versions of TI, so you may have to modify the commands listed in the previous posts to conform to the location of the TrueImageService.exe file and the user script file, depending on whether you are using TI 10, TI 11, TI 2009, or TI 2010.