Using RoboCopy


  1. Posts : 153
    Windows 10
       #1

    Using RoboCopy


    I'm trying to use RoboCopy to backup my data files to a USB stick and External HDD.

    I created a folder in each destination called DataBackup and run the following command.

    robocopy "d:\datafiles" "e:\databackup /e

    Problem is it doesn't copy to that folder. It simply puts the folder DataFiles in the root of each drive and copies it's contents.
    In fact the folder I specify in the command is removed after the copy.
    How do I get robocopy to copy the folder to the folder I specify?

    Also, after the initial copy, when I want to backup again, how to I tell robocopy to only replace files that has been changed since the last backup?

    James
      My Computer

  2. pepanee's Avatar
    Posts : 1,462
    Windows 10 Professional
       #2

    I don't know much about RoboCopy. I use a 3rd party program that is a GUI version of RoboCopy called: FastCopy

    But also one thing that I wanted to point out to you was that you seem to be missing a "close quote" after e:\databackup

      My Computer

  3. spunk's Avatar
    Posts : 2,886
    Windows 10 Pro 64 Bit 20H2
       #3
      My Computer


  4. Posts : 153
    Windows 10
    Thread Starter
       #4

    I found a third party sync program that does my bidding.

    Thanks,James
      My Computer


  5. Posts : 264
    Windows 10 Enterprise
       #5

    This is the wrong syntax: robocopy "d:\datafiles" "e:\databackup /e

    IT needs to be like this: robocopy d:\datafiles e:\databackup\datafiles /e

    You only need the quotes if the folder has a space in the name. Hope this helps.
      My Computer

  6. Try3's Avatar
    Posts : 7,625
    Windows 10 Home x64 Version 20H2 Build 19042.928
       #6

    James,

    If you are happy to use a third party utility then fine but you could have used

    ROBOCOPY "d:\datafiles" "e:\databackup" /E /XA:H /MIR /DCOPY:T /MT /R:10

    You'll find explanations of each of the switches by entering this in a command window RoboCopy /?

    In the example given, you can omit the " pairs but notice that, as pointed out above, they must be used at the start and end of any path that contains a space [in your question, you omitted one of them - they must always exist in pairs if they are used at all].

    Denis
      My Computer

  7. Bree's Avatar
    Posts : 19,066
    10 Home x64 (20H2) (10 Pro on 2nd pc)
       #7

    Try3 said:
    If you are happy to use a third party utility then fine but you could have used....
    Actually, you don't need to go to third parties to find a Robocopy GUI. Microsoft have had one since 2006...
    https://technet.microsoft.com/en-us/...spotlight.aspx

    ...and there's been RichCopy since 2009.
    https://technet.microsoft.com/en-us/...spotlight.aspx
      My Computers

  8. Wiley Coyote's Avatar
    Posts : 1,097
    Windows 10 Home x64 Version 1809 (OS Build 17763.437)
       #8

    Maybe a look at https://technet.microsoft.com/en-us/...(v=ws.11).aspx would be helpful. I know it was for me when a certain someone sent me a copy of their RoboCopy "back-up" routine.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 08:37.
Find Us




Windows 10 Forums