I need to backup a couple of folders across our network to a server which is backed up. I am trying to use Robocopy to copy any changes over to the server before the nightly backup.
I created a batch file to run robocopy on both folders and used Windows Task Scheduler to set it to run every night.
I have made sure the batch file is correct. If I run it manually by selecting it and telling it to run as administrator it runs fine. However it never runs from the Task Scheduler. The user I created the task with has administrator rights on the computer, I have selected Run wit Highest privileges and Run whether user is logged on or not. I tried changing the user or group to another administrator account, I tried changing it from a .bat file to a .cmd file. I even scheduled two separate tasks with robocopy itself in the action and I still can not get it to run. I have selected wake this computer to run this task and set the computer not to go to sleep
add arguments: c:\data y:\data /S /z /r:5 /W:5 /log:y:\robocopy.log /NP
Y is mapped to the external folder and if I run this from the command line or in a batch file it works fine.
There are no errors in the logs. I do not get any messages on the screen. If I try to run it from Task Scheduler nothing happens. Both users I have tried have rights to the the files/folders
The computer is running Windows 7 64 bit.