Copying directory with Robocopy skipped too many directory and files

Page 1 of 2 12 LastLast

  1. Posts : 83
    Windows 7 Ultimate x64
       #1

    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 Computer


  2. Posts : 3,786
    win 8 32 bit
       #2

    Use /V Produce verbose output, showing skipped files. so you can see whats been missed
      My Computer


  3. Posts : 1,363
    Win7 pro x64
       #3

    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 Computer


  4. Posts : 83
    Windows 7 Ultimate x64
    Thread Starter
       #4

    johnhoh said:
    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 Computer


  5. Posts : 83
    Windows 7 Ultimate x64
    Thread Starter
       #5

    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 Computer


  6. Posts : 83
    Windows 7 Ultimate x64
    Thread Starter
       #6

    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 Computer


  7. Posts : 9,600
    Win 7 Ultimate 64 bit
       #7

    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 Computer


  8. Posts : 1,363
    Win7 pro x64
       #8

    peter7277 said:
    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

    peter7277 said:
    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 Computer


  9. Posts : 83
    Windows 7 Ultimate x64
    Thread Starter
       #9

    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 Computer


  10. Posts : 83
    Windows 7 Ultimate x64
    Thread Starter
       #10

    johnhoh said:
    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 Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 22:56.
Find Us