Robocopy Documents error


  1. Posts : 2
    Windows 7 Ultimate x64
       #1

    Robocopy Documents error


    Hey everyone. I'm new to this forum, after doing some searching about my problem, and finding this site. I'm hoping someone here, has dealt with my particular issue before, and has a way to fix/workaround it.

    Here's the scenario:
    My Pictures has become excessively large (over 40GB large)
    So I used the Move Target built into the Windows Explorer- right click properties to move the folder to my E drive (2TB). No problems there, and everything works the way it should. I should mention, I did this for My Videos as well.

    However, I run a backup script, every night. The backup script uses robocopy to back up all my important documents/photos/videos/etc to my NAS drive (Mapped as a network share to drive Y)

    My options are:
    Code:
    SET OPTIONS= /MIR /E /XO /FFT /COPY:DT
    But now when using my script, which is:
    Code:
    robocopy C:\Users\LordSith77\Documents Y:\LordSith77\Documents %OPTIONS%
    It works fine, UNTIL it gets to My Photos, which gives an error:
    Code:
    ERROR 3 (0x0000003) The system cannot find the path specified.
    How do I get robocopy to stop trying to copy My Pictures/My Videos when backing up My Documents? I have those set with a different line in my backup script.

    I have searched and searched, and found no page even close to my problem.
      My Computer


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

    Welcome to the forum use /xd

    /XD - Excludes Paths e.g. /XD "Temp" "Temporary Internet Files"
    Sometimes there is data you do not wish to copy. For example to copy a user profile will also copy temp files, using the /XD switch and specify files as above, Robocopy will skip these files speeding up the transfer.
      My Computer


  3. Posts : 2
    Windows 7 Ultimate x64
    Thread Starter
       #3

    samuria said:
    Welcome to the forum use /xd

    /XD - Excludes Paths e.g. /XD "Temp" "Temporary Internet Files"
    Sometimes there is data you do not wish to copy. For example to copy a user profile will also copy temp files, using the /XD switch and specify files as above, Robocopy will skip these files speeding up the transfer.
    I thought about using the /XD option, just for that line...but after doing some more research about it, I saw a lot of people saying that robocopy pretty much ignores the /XD and copies everything anyway.

    So I changed my code for that line to:
    Code:
    robocopy C:\Users\%USERNAME%\Documents Y:\LordSith77\Documents %OPTIONS% /XD "My Pictures" "My Videos"
    And this time it worked. I did try the /XD before, but think I didn't have the "'s in place.

    Thanks for helping me out, samuria. Greatly appreciate it.
      My Computer


  4. Posts : 2,774
    Windows 7 Professional 64-bit
       #4

    Samuria's post includes an important tip: most command lines have to be very accurately typed in :)
      My Computer


 

  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 16:45.
Find Us