Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Copying directory with Robocopy skipped too many directory and files

01 Apr 2019   #1
peter7277

Windows 7 Ultimate x64
 
 
Copying directory with Robocopy skipped too many directory and files

I was copying a directory with its sub directories and files, around 6GB, using robocopy and i was using this command:
Code:
Robocopy.exe SourceDir DestinationDir  /E /w:1 /r:1
I added the switches /w:1 /r:1 because robocopy would stop on some files and show a message for 'access denied' and waiting for 30 seconds and trying again. So i wanted to skip these type of files. But in the end it showed this:

Code:
              Total    Copied   Skipped  Mismatch    FAILED    Extras
   Dirs :     11208     10868       340         0         0         1
  Files :     73105     70551      2551         0         3         0
  Bytes :   5.792 g   5.202 g  603.35 m         0   414.5 k         0
  Times :   0:26:36   0:20:22                       0:00:03   0:06:11


  Speed :             4569716 Bytes/sec.
  Speed :             261.481 MegaBytes/min.
There are lot of files and directories skipped. How to proceed? What switches to use so i don't have that much files and directories skipped?


My System SpecsSystem Spec
.
01 Apr 2019   #2
samuria

win 8 32 bit
 
 

Use /V Produce verbose output, showing skipped files. so you can see whats been missed
My System SpecsSystem Spec
01 Apr 2019   #3
johnhoh

Win7 pro x64
 
 

access denied is usually a permissions problem, usually on the writing directory. I suggest you include

/COPYALL

which is the equivalent of /COPY:dATSOU, which copies the Data, Attributes, Timestamps, Owner, Permissions and Auditing info
My System SpecsSystem Spec
.

02 Apr 2019   #4
peter7277

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by johnhoh View Post
access denied is usually a permissions problem, usually on the writing directory. I suggest you include

/COPYALL

which is the equivalent of /COPY:dATSOU, which copies the Data, Attributes, Timestamps, Owner, Permissions and Auditing info
You mean i don't have to include /w:1 /r:1 switches, only /E and /COPYALL?
My System SpecsSystem Spec
02 Apr 2019   #5
peter7277

Windows 7 Ultimate x64
 
 

I found something confusing. I checked the properties of the both, source and destination folder, and destination folder show this:
Code:
Size: 5.80GB
Size onn disk: 5.96GB
Contains: 73.120 files, 11.209 Folders
The source folder show this:
Code:
Size: 5.79GB
Size on disk: 5.95GB
Contains: 73.105 files, 11.207 Folders
If robocopy shows that 340 directories and 2551 files are skipped the destination folder should be with smaller size, and it is not. It's even slightly bigger. How to explain this?
My System SpecsSystem Spec
02 Apr 2019   #6
peter7277

Windows 7 Ultimate x64
 
 

I think i found the issue with skipped files and folders. I stopped and started the robocopy command execution two or tree times, so i think the skipped files and folders are those that are already copied.

So, practically there are only 3 failed files and i found that they are in the Cygwin folder, but couldn't find which one. By the way, what is the right way to use the verbose command? I added the /V switch but it didn't show the skipped files.

But i still don't understand why the destination folder shows 15 files and 2 directories more. Is there command line tool for Windows 7 that can compare directories? I couldn't find one.
My System SpecsSystem Spec
02 Apr 2019   #7
Lady Fitzgerald

Win 7 Ultimate 64 bit
 
 

I prefer using FreeFileSync for copying a large number of files or even an entire disk (as long as it's data only). I found it far easier to use than Robocopy and was more reliable. Any files that failed to copy over were reported at the end of the job.
My System SpecsSystem Spec
02 Apr 2019   #8
johnhoh

Win7 pro x64
 
 

Quote   Quote: Originally Posted by peter7277 View Post
You mean i don't have to include /w:1 /r:1 switches, only /E and /COPYALL?
just add /copyall to the end, keeping your other switches

Quote   Quote: Originally Posted by peter7277 View Post
But i still don't understand why the destination folder shows 15 files and 2 directories more. Is there command line tool for Windows 7 that can compare directories? I couldn't find one.
after doing copyall above, do the same robocopy command again but add on the /xo swtich. This will incrementally back up the source drive copying ONLY files that have been recently updated OR do not yet exist on the backup drive. If no files get copied, your work is done
My System SpecsSystem Spec
02 Apr 2019   #9
peter7277

Windows 7 Ultimate x64
 
 

The hard disk from which i am copying is failing and have bad sectors. Could this cause problems? If some files are corrupt how robocopy will deal with them?
My System SpecsSystem Spec
03 Apr 2019   #10
peter7277

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by johnhoh View Post
access denied is usually a permissions problem, usually on the writing directory. I suggest you include

/COPYALL

which is the equivalent of /COPY:dATSOU, which copies the Data, Attributes, Timestamps, Owner, Permissions and Auditing info
/COPYALL doesn't work. I still get 'Access denied' message.
My System SpecsSystem Spec
Reply

 Copying directory with Robocopy skipped too many directory and files




Thread Tools




Similar help and support threads
Thread Forum
Directory Date modified is not updating after copying files into it
Hello, I'm working on windows enterprise 7 computer at work. Today I copied files from one network directory to a different network directory. When I looked at the date modified field in windows explorer it showed an older date then the files in the directory. On one of the directories I...
General Discussion
Files won't delete in directory - can't rename the directory either
So i have 3 files i cannot delete after uninstalling a game. I also cannot rename the folder they are in without windows explorer not responding and i have to restart explorer. I did take ownership method but that froze up to. I went into safe mode, and tried it that way - also didn't delete, it...
General Discussion
Robocopy /MOV command copying but not deleting from source directory
Hi All, I have one folder A and have another folder B in the same drive E: I need to move all the content from folder A which are more than 2 years old to folder B. Hence when I ran the robocopy it just copied and I lost all disk space in drive E. My question is even though I used /MOV...
General Discussion
Robocopy? Copy Directory Structure 1 level
I want copy a list of folders (a few hundred) to a new location. I tried using robocopy but can only get it to either copy the selected folder or all folders with subfolders. What I want is to only copy one level of folders and not the subfolders within. Example: C: Drive (the source) ...
General Discussion
Replace files in multiple directory, from a single directory
I have a 10 files that have all been categorised into about 40 folders. These files have been damaged. I have a backup of all these files, but they are not categorised and sit in a single directory. Does anyone know of an easy technique to batch replace the damaged files with the originals? ...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:33.
Twitter Facebook