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?

    James
      My ComputerSystem Spec
  2.    12 Aug 2017 #2
    Join Date : Jul 2016
    Granite Bay, CA
    Posts : 706
    Windows 10 Professional

    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
    Join Date : Jun 2016
    Los Angeles
    Posts : 1,030
    Windows 10 Pro
      My ComputerSystem Spec
  4.    12 Aug 2017 #4

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

    Thanks,James
      My ComputerSystem Spec
  5.    12 Aug 2017 #5
    Join Date : Oct 2014
    Posts : 163
    Windows 10 Enterprise

    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.    12 Aug 2017 #6
    Join Date : Apr 2015
    Posts : 261
    Windows 10 Home x64 and Pro x86

    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 ComputerSystem Spec
  7.    12 Aug 2017 #7
    Join Date : Aug 2016
    S/E England
    Posts : 4,477
    10 Home x64 (1709) (10 Pro on 2nd pc)

    Quote Originally Posted by Try3 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...
    https://technet.microsoft.com/en-us/...spotlight.aspx

    ...and there's been RichCopy since 2009.
    https://technet.microsoft.com/en-us/...spotlight.aspx
      My ComputersSystem Spec
  8.    13 Aug 2017 #8
    Join Date : Feb 2017
    Home
    Posts : 479
    Windows 10 Home x64, V1709 (16299.64)

    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 ComputersSystem Spec

 


Similar Threads
Thread Forum
Need some critique on my backup plans using robocopy
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...
Backup and Restore
Robocopy /Network problem copying files : need help please
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...
Performance & Maintenance
robocopy backup of important files
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...
Backup and Restore
Robocopy and /ETA switch
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...
General Support
Run Robocopy to backup file on shutdown, does not seem to work.
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...
Backup and Restore
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 18:13.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums