Skip to main content

backup on shutdown

Thread needs solution
Beginner
Posts: 1
Comments: 1

Since I updated ATI 9 to 2010 to work with windows 7 I cannot see how to schedule a backup once a day before shut down. I found this very usefull and reliable in the earlier version. Is this still possible?

0 Users found this helpful
Beginner
Posts: 1
Comments: 1

#1

Please help

Forum Star
Posts: 45
Comments: 4263

#2

There isn't a way to do this directly with TI when using Vista or later versions of Windows. You would need to schedule a task in TI and use the shutdown program as a post-command. This task could then be run on a schedule (if you shutdown at a specific time each day) or via a batch file run at your discretion.

Beginner
Posts: 0
Comments: 1

#3

If I want to accomplish the shutdown via a batch (I don't shutdown at a specific time each day), what would be the command to put into the batch file to make TI run my Full Backup?

Regular Poster
Posts: 11
Comments: 229

#4

step 1:
goto folder
C:\Documents and Settings\All Users\Application Data\Acronis\TrueImageHome\Scripts\

You will have one ".tis" file for each backup task you have defined within acronis.
use NOTEPAD on each ".tis" file and find the one which does the backup you need done upon shutdown.
Make note of this filename.

step 2: Use NOTEPAD (not wordpad/msword/msworks) and create a new file such as c:\my_backup_and_shutdown.bat
which will look like this...

:: c:\my_backup_and_shutdown.bat
:: Perform an acronis backup
:: then start a 300 second countdown to shutdown
::
::
:: step 1 do the backup
"C:\Program Files\Common Files\Acronis\TrueImageHome\TrueImageHomeService.exe" /script:"C:\Documents and Settings\All Users\Application Data\Acronis\TrueImageHome\Scripts\5E461C24-43B9-448B-8398-CDDB844FC416.tib.tis"
::
:: step2 do a countdown to shutdown
shutdown -t 300 -f -s -c "SHUTDOWN in x seconds TO CANCEL the shutdown click start run and type \"shutdown -a\" (no quotes)"

in the file above you need to repalce 5E461C24-43B9-448B-8398-CDDB844FC416.tib.tis
with the correct filename from YOUR pc.
exit notepad.
use windows explore RIGHT mouse click this filename
drag/drop onto your desktop and select "create shortcut here"
name the short cut whatever you want "Backup and Shutdown" would be a good choice.

now when you want to shutdown double click the "backup and shutdown" icon you just created.

If you dont like the "shutdown" program that comes with windows there are lots of freeware shutdown progs out there
one is http://www.karenware.com/powertools/ptstopper.asp

enjoy.

Legend
Posts: 172
Comments: 11125

#5

Utilizing the information provided as a courtesy by oracledba as listed above, I have used this information to create 3 batch files. If interested, you can download the zip attached. Unzip and drag the contents onto your desktop.

Backup & shutdown.bat
As described in post #4 above. User modification needed.

Start_timed_shutdown.bat
Use this as a desktop shortcut or added as a pre/post processing task to TrueImage.
Uses the 300 second delay before shutdown as described above.

Stop_shutdown.bat
Once the 300 second delay is in countdown, clicking this desktop shortcut will cause the shutdown to abort.

The 300 second delay can be modified to suit your needs. Path to shutdown.exe may need to be modified. These batch files based on XP Pro file paths %windir%\system32\shutdown.exe

Text and image revised April 14
Some suggestions:
Editing an TrueImage task can cause unexpected results. Suggest you create a new TrueImage task.

Use the Post edit/browse option or
1. Command should read
%windir%\system32\shutdown.exe

2. Working directory should read (include the last backward slash)
%windir%\system32\
or if your path might be
C:\Windows\System32\

3. Argument can be a variety of settings but the best success for including a direct command inside TrueImage is to use the simple shutdown command as illustrated in the picture attachment. Fancier options such as the strike through command has better success when included in a command (cmd) or batch (bat) files.
Argument:
-t 300 -f -s -c "SHUTDOWN in countdown. TO CANCEL the shutdo>wn. Click START RUN and type SHUTDOWN -A

For more information about the command options available for the shutdown command, open a command prompt window and at the prompt, type SHUTDOWN /? (and press Enter). And, if you really want to get fancy or have even more options, then check out the Shutdown command available from this link about "PSTools by Mark Russinovich of Microsoft.
http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx

Additional helpful information for Vista and Windows 7 offered by MVP Colin in post #12 at link below.
http://forum.acronis.com/forum/9610#comment-26146

Attachment Size
13011-86470.zip 1.36 KB