How can I Run All of my Backup scripts one after the other?
I am running TI2013 on my Home PC, which has 2 HD's, one for the OS & another for the data.
I also have 2 separate USB3 Backup devices, and I use TI2013 to backup up both HD's onto each USB3 device separately.
Can someone send me an example script to run each of my Backups in turn...
Thanks,

- Log in to post comments

This should also be possible via a batch file (.bat). An advantage there would be that you wouldn't need to estimate the time needed for the first task.
I batch run multiple Robocopy backup tasks. I just launch the .bat file, and it runs according to my instructions. The second task does not begin until the first task has completed, and so on.
- Log in to post comments

Hi Tuttle,
How is your memory? I had all but given up on getting any feedback on this, as can probably work out with the time delay in me responding.
The .bat file is my preferred option, and I have tried a couple of times, but I can't work out how to get the second task to wait until the first completes. Can you share this ?
Also related to this, do you know how I can avoid the annoying windows, "allow the following program to make changes?" popup from happening?
Many thanks,
Dave
- Log in to post comments

To run the batch file:
right-click the .bat file | select "Run as Administrator" | answer "Yes" at the UAC prompt.
In a batch file, set each command on a separate line. (I add a blank line between them, just to make it more human readable.) Batch protocol won't begin the second command until the first has completed.
I actually set and reuse variables in my .bat files, to simplify and shorten each entry. e.g.
ROBOCOPY "D:" "X:\Backups\D_Data" %options% %logpath%Data-to-X.txt"
The long list of options for the variables %options% and %logpath% are defined earlier in the script. To make it easier for you to understand, here's a backup command without using variables:
ROBOCOPY "T:\Installers" "X:\Backups\Installers" /LOG:"D:\0 For All\Robocopy\Logs\T-Installers-to-X.txt" /COPYALL /MIR /MT:16 /R:12 /W:2 /A-:RSH /XA:SH /XJ /XD "$RECYCLE.BIN" "System Volume Information" /XF DESKTOP.INI /V /NFL /NDL /TEE
I add a PAUSE command near the top of the batch file, so that if I accidentally run it I can hit Ctrl-c to stop it.
I add a PAUSE command at the bottom of the batch file, to force the cmd window to stay open after it has completed to allow me to see the output from ROBOCOPY.
ECHO OFF only hides the next command. If you wish to hide all commands you must use @ECHO OFF.
If you place a . (period) after the ECHO command it will skip a line.
To echo a blank line on the screen, type:
ECHO.
If you want to turn echo off and you do not want to echo the echo command, type an at sign (@) before the command as follows:
@echo off
Here's one of my .bat scripts, that runs three Robocopy tasks in sequence:
@ECHO OFF
ECHO.
ECHO Backup laptop to X
ECHO.
ECHO.
PAUSE
SET options=/COPYALL /MIR /MT:16 /R:12 /W:2 /A-:RSH /XA:SH /XJ /XD "$RECYCLE.BIN" "System Volume Information" /XF DESKTOP.INI /V /NFL /NDL /TEE
SET logpath=/LOG:"D:\0 For All\Robocopy\Logs\
ROBOCOPY "D:" "X:\Backups\D_Data" %options% %logpath%Data-to-X.txt"
ROBOCOPY "E:" "X:\Backups\E_Music" %options% %logpath%Music-to-X.txt"
ROBOCOPY "C:\Users\Public\Desktop\Drop" "X:\Backups\Drop" %options% %logpath%Drop-to-X.txt"
ECHO.
PAUSE
- Log in to post comments

Just to point out, if the OP is using Windows 7 or 8, it is better for the file to have a cmd suffix instead of bat. If however the bat file runs with no problems this might not be needed.
With some commands there are minor syntax changes between the older BAT grammar and the newer CMD ones.
- Log in to post comments

Thanks Tuttle,
I will have a play and get back to you.
Colin,
Where can I get a syntax map for these commands?
Thanks,
Dave
- Log in to post comments

Best thing Dave is to look in the MS knowledge base under CMD, mostly it is a change from - to / for switch options.
- Log in to post comments

Colin B wrote:Just to point out, if the OP is using Windows 7 or 8, it is better for the file to have a cmd suffix instead of bat. If however the bat file runs with no problems this might not be needed.
Is it truly "better"? I thought it was just different, some minor differences in syntax and in error reporting.
- Log in to post comments

So is there an answer to this question? I have the same problem. How can I start multiple backup jobs with one click or one batch file? I tried putting all of my backup tasks in a batch file, however, TI will only start the first one and discard the other ones, because apparently, it does not support queuing backups. Somewhere else, it has been suggested to use the task scheduler and leave enough time between each task to complete, but for me, that is not an acceptable solution.
- Log in to post comments

Hi Harald,
In all honesty, no. You can patch up a .cmd file like suggested above, but it is so temperamental, you have to patch or change the file whenever anything changes with the backups.
I have gone back to running these jobs manually.
Sorry,
Dave
- Log in to post comments