I have job that runs every 15 minutes that uses robocopy to copy a backup of the tranaction logs to a different server. This job is failing USER has full access rights to both home folder and the destination folder.
JOB SQL:
robocopy "e:BackupSQL02$PROD" "SERVERDRIVE$prodsqlackup" /MIR /E /Z /NS /NFL /NDL /NJH /NP /R:10 /W:30 if %errorlevel% LSS 8 set errorlevel=0
Error Log:
Date 22/06/2010 09:05:00 Log Job History (Sync Production backup to app040)
Step ID 1
Server NDAHHSQL02PRODUCTION
Job Name Sync Production backup to app040
Step Name robocopy production
Duration 00:00:00
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message Executed as user: DOMAINUSER. 2010/06/22 09:05:00
ERROR 5 (0x00000005) Getting File System Type of Destination \SERVERDRIVE$prodsqlackup Access is denied.
2010/06/22 09:05:00 ERROR 5 (0x00000005) Creating Destination Directory \SERVERDRIVE$prodsqlackup Access is denied. Process Exit Code 16. The step failed.