Using RoboCopy

  1.    12 Aug 2017 #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?

      My ComputerSystem Spec

  2. pepanee's Avatar
    Posts : 1,119
    Windows 10 Professional
       12 Aug 2017 #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 ComputerSystem Spec

  3.    12 Aug 2017 #3
      My ComputerSystem Spec

  4.    12 Aug 2017 #4

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

      My ComputerSystem Spec

  5.    12 Aug 2017 #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 ComputerSystem Spec

  6. Posts : 1,074
    Windows 10 Home x64 and Pro x86
       12 Aug 2017 #6


    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].

      My ComputerSystem Spec

  7. Bree's Avatar
    Posts : 9,533
    10 Home x64 (1809) (10 Pro on 2nd pc)
       12 Aug 2017 #7

    Try3 said: View Post
    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...

    ...and there's been RichCopy since 2009.
      My ComputersSystem Spec

  8. Wiley Coyote's Avatar
    Posts : 1,002
    Windows 10 Home x64 Version 1809 (OS Build 17763.194)
       13 Aug 2017 #8

    Maybe a look at would be helpful. I know it was for me when a certain someone sent me a copy of their RoboCopy "back-up" routine.
      My ComputersSystem Spec


Related Threads
I am trying to make better file backups. So in order to have different backup frequencies on different files, I decided to write scripts to run robocopy to perform the backups (I'm running these scripts manually using scheduler to display...
Hi all I have just found Robocopy and it seems the perfect tool for what I am trying to do.... :really: I make an incremental Backup on one of my PC's (Called Server-PC) every day using AOMEI backupper and I want to mirror that folder on my main...
robocopy backup of important files in Backup and Restore
hi, I have a standard Windows 10 build and I'm using robocopy to backup my data to an external drive. The goal is just to capture all my data so if the PC fails/gets stolen etc. I can restore my data on to another PC. I'm doing a backup of...
Robocopy and /ETA switch in General Support
I have a few batch scripts to backup or restore files, and for some of them, I have the /ETA switch in them as they will move some larger files. In W7, It would always give the time to transfer, but in Win10 (x64), this switch doesn't seem to do...
I want to run Robocopy to copy my Money 2005 file every shutdown, I know Money has a backup facility but when my wife runs Money on her laptop (Using Homegroup) there is always a backup conflict with my PC and if I open Money and try to backup I get...
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 03:03.
Find Us