Skip to main content

Can I run a backup task in a batch mode?

Thread needs solution

Hi Everybody

My understanding, based on the documentation provided, is that the settings for the backup job can be exported in the form of a script file. These settings can include the following :-

Quote from documentatin - Edited
Importing and exporting backup settings
Acronis True Image Home 2012 allows you to import and export the settings of your backups. The settings content can be different depending on a backup type. In case of "classic" disk and file type backups the settings consist of the following items :-
 list of items for backup
 backup options
 backup location
 schedule
 backup scheme
 automatic clean-up rules
 backup version naming rules

UnQuote
Given that these can be exported to a script file, could someone confirm if it would be possible to run this script file in a batch mode? In other words, can the script file be called upon from within a DOS batch file (a .bat file) - the intent being to run it (the DOS batch file, that is, as a 'Windows XP - Before Shutdown' script.

The overarching idea for this get around is to sort of faciliate the 'Confirm Before Backup' option which is not available in any of the Acronic Backup products - but is an absolute necessity for me.

Any suggestions on this would a great help.

Best regards

Deepak Agarwal

0 Users found this helpful

I think you are really looking at producing a CMD answer file that is run by the pre run option in TIH. I don't think there is any way of sending the cancel request to the scheduler, other than stopping the service.

A possible way around this might be to have manual tasks and a cmd file that asks the question and if an image is wanted, the CMD file calls TIH executable, the task can then be set to shut Windows down on completion.

I would make a CMD task that runs the shutdown command for Windows, so the user clicks the desktop shortcut for this file to close Windows, that file then has the question and answer dialogue and if an image is not required it then shuts Widnows down.

Hi Colin B

Thanks for your quick response. That is most sincerely appreciated.

I think (not a 100% sure though) that is exactly what I am looking at doing.

I do have a batch file that asks for a user input - this batch is run at Windows Shutdown. In other words, this batch file is - what they call in the IT terms - a 'Windows Shutdown Script' file - obviously I am obviously not a core IT person but nevertheless. Now, depending upon the user response, the execution of the batch will terminate without any further action and the computer will shutdown or will call for the TIH script file (the file that contains the TIH commands for the backup job that I want without the scheduling - kind of manual job) to execute.

The only question is how do I call the TIH script file - do I just call it by saying :-

D:\Deepak\TIT_BackupScriptFile.XXX

in the batch file where 'xxx' is the extension of the TIH script file - I don't know what that is or what that needs to be? The script file in this instance is assumed to reside in the "D:\Deepak\" folder.

Please advise if I am on the right track here!

And I genuinely appreicate all the help that you and others have provided to me so far. Thanks once again!

Best regards

Deepak Agarwal

The batch files I posted at http://forum.acronis.com/forum/27989 will help. Make a SLEEP command the first thing executed, and when the command processor window opens, just cancel it before the sleep time expires. If you don't cancel it, the batch file will execute and the backup will be performed.