As part of an forthcoming upgrade we need to create a duplicate of all our data on our servers. As to not impact our diffeeriential backups by suddenly increasing the amount of data backed up we wish to schedule a robocopy of the data and back small increments on the run up to the go live.
We have created a simple batch script running robocopy and using windows scheduler have configured the job to only run for 15 mins. After 15 mins the job terminates but the underlying robocopy process continues to copy the data. In task manager the robocopy process is still running. Is there a way within our script where we can call robocopy that will enable the task scheduler to terminate all processes called from the script. Below is copy of our script
for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do set dt=%%i-%%j-%%k-%%l
for /f "Tokens=1" %%i in ('time /t') do set tm=-%%i
start robocopy "R:\objective\erdmprod\doc" "R:\test" /MIR /SEC /LOG:"R:\Obj7copyrepository.log"
mapisend -u firstname.lastname@example.org -p " " -r DLCSPTSMA@scotland.gsi.gov.uk -s "VQ65EDER Objective 7 TestDuplicate Doc Store Copy %dtt%"