Robocopy file transfer backup using SQL server
I have a job running robocopy to copy files from the SQL server to a backup drive. The job runs a CmdExec type job to call a batch file that runs robocopy. My issue is that although the files copy over fine, the error reports do not get registered. I tested this by changing the source file to a bogus drive. It still reports job success. I have narrowed it down to run only robocopy. When the job runs the batch file, the job reports success. The job still reports success even if I only type robocopy in the batch file and nothing else. Here is the code I am running to try out the error handling:
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.