Avatar of hpradhan08
hpradhan08
Flag for United States of America asked on

It doesn't run when I schedule as window's task...What is wrong with this robocopy scipts?

Hi there,
It doesn't run when I schedule  the followin scipt as window's task...What is wrong with this robocopy scipts? Could you please help?

The OS = Window Server 2008 R2 SP1

:: Backup script to copy database backup files to local Datadomain
:: Updated by:
:: Date
:: Set VARS
set T02_backup=1

:: Check for active backup disks
touch i:\backup
if errorlevel == 1 set T02_backup=0

:: Copy Database Backup files to Datadomain
if %T02_backup% == 1 (

robocopy "souce" "Destination" /-E /NP /LOG:Backup2DataDomain_Log.txt
Microsoft SQL ServerMicrosoft Server OSWindows OS

Avatar of undefined
Last Comment
hpradhan08

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
noufs

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
hpradhan08

ASKER
Hi Noufs,
Thank yo for info.

So you know what these means:
On the last run result, it says the operation being requested was not performed because the user has not logged on to the network. The specified sesrvice does not exist..
 And
Task Scheduler failed to start "\Backup" task for user "VSS-ENG\newbelgium". Additional Data: Error Value: 2147943645.

Please let me know.
SOLUTION
ZabagaR

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
hpradhan08

ASKER
oh, ok, I'll check that and see. Thanks.
hpradhan08

ASKER
I checked it and it's not checked on 'Run whether user is logged in or not" ... What could be other issue?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
hpradhan08

ASKER
ok, thanks