Robocopy .bat wont copy anything

sarsshadow

Distinguished
Aug 21, 2009
12
0
18,510
Hey guys,

so im trying to run a simple backup command with robocopy as .bat file. Problem happens when it doesn't do anything when i run the .bat but if i paste the triggers it'll work flawlessly. I have tried running as administrator, no luck.

This is my trigger:

robocopy E:\BackupSourceTest F:\InstallationBackup /e /mir /np /tee /mt:4 /log:backup_log.txt
pause

http://imgur.com/a/nEx77

Thanks guys, greatly appreciated.
 
What you have in the screenshot and what you have in the post are two different things. Which one are you using? Post a screenshot of the batch file running. If you are using /mir you do not need /e. Get rid of the /np option so you can see what is happening. Since you are using /mt command, are you using the correct version of the program? Have you tried running it without the /mt? Have you tested the thing with one switch at a time to see where it fails?

Are you sure it's actually not running or that there is nothing for it to do? If you already have the files you are copying in the source, you may not be able to see much. Your question is petty much the exact thing as this one https://stackoverflow.com/questions/29542683/robocopy-appears-to-do-nothing-when-mt-flag-is-used

 

sarsshadow

Distinguished
Aug 21, 2009
12
0
18,510


That is the screen shot of it running. I have tried using 1 switch at a time and ended up the same. I have even only used /mir and same thing happened. If you look at the files copied category, it shows 0. Having detected 8 files, 0 copied.

Command:
robocopy E:\TestSource F:\TestBackup /mir
pause

Running Batch
http://imgur.com/opIY8SE
VS
Pasting Command
http://imgur.com/a/b3OVO



I ran the batch and looked in the folder and theres no file in it. I have some random files in there just for testing. Just running the switch with copy and paste and enter in cmd works just fine.
 
I just tested that shorter command with the /mir and it worked fine on my system in a .bat file. It created the folder structure in the destination that matches the source. Does it write to the log or offer any errors? Maybe a rights issue on the destination? Are those network drives? Try that command with copying to the same local drive, not external or network.
 

sarsshadow

Distinguished
Aug 21, 2009
12
0
18,510


unfortunately it doesn't even write the log either or errors. It just wouldn't perform the batch command and idles. I have double checked the destination and confirmed correct. It is writing to a local drive. Im only thinking my windows is corrupted.