Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

robocopy is copying new directories but not the new files in them

$
0
0

So, I have this script that should copy files from a server to a portable backup drive attached to my desktop.

robocopy \\mango\Websites k:\Websites /S /COPY:T /R:2 /W:300 /LOG:k:\logs\Website.txt /TEE /NP /purge
robocopy \\mango\HomeDir k:\HomeDir /S /COPY:T /R:2 /W:300 /TEE /NP /purge /LOG:k:\logs\homedir.txt

When I last used it from another desktop I'm pretty sure it worked. But for some reason it isn't working correctly from this one. It recognized new directories in the log, but failed to copy them. I changed the /S to /E and it copied the new directory structure but not the files. It does seem to be recognizing newer versions of existing files and is copying those.

What am I missing here?


Viewing all articles
Browse latest Browse all 15028

Trending Articles