Solved

Robocopy Skipped Files on Server 2008R2

Posted on 2013-11-27
2
8,085 Views
Last Modified: 2013-12-17
I ran a robocopy because I want to copy all files within a particular directory onto the same directory on another drive. I ran robocopy with the options: *.* /S /E /COPYALL /PURGE /MIR /ZB /R:1 /W:1

my log shows that there were 101007 files 17GB skipped, but I don't see which ones those are or for what reason they were skipped.

How can find out which files are skipped, determine what caused them to skip, and how I can re-run the robocopy to copy over the remaining files that have not yet been copied instead of all the files.

I need to maintain the permissions and timestamps as well.

Thank you.
0
Comment
Question by:fireguy1125
2 Comments
 
LVL 20

Expert Comment

by:Lazarus
ID: 39681792
Run it with the logfile option:  /log:f:\robo.log /tee
This will give you a log off all files
0
 
LVL 84

Accepted Solution

by:
oBdA earned 500 total points
ID: 39681867
"Skipped" are simply files and folders that were already in the target folder when you copied.
Any file copy that really failed will be logged as Error, not as "Skipped".
In other words: if there were no errors in the summary, the copy was OK.
You might want to check robocopy's errorlevel as well when/if you run it the next time (echo %errorlevel%) in the batch script or as first command after robocopy in a command line. Anything less than 4 means there were no errors.
You can just run the same command another time; robocopy will by default skip files that are already in the same version in the target (same time stamp, same size), so you odn't need any special options for that.
Logging to a file is not a bad idea, either, but if you do that, add /NP (no progress) to your options, otherwise the control characters of the progress bar will mess up the log file.
You can add /nfl (no file list) and /ndl (no directory list) as well; this will only prevent the logging of successfully copied files (making for a more concise log), errors will still be logged.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Microsoft will be releasing the Windows 10 Creators Update in just a matter of weeks. Are you prepared? Follow these steps to ensure everything goes smoothly and you don't lose valuable data on your PC.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question