Using RoboCopy

Page 1 of 2 12 LastLast

  1. Posts : 159
    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. Posts : 2,911
    Windows 10 Pro for the Bro
       #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. Posts : 4,791
    Windows 11 Pro 64 Bit 22H2
       #3
      My Computer


  4. Posts : 159
    Windows 10
    Thread Starter
       #4

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

    Thanks,James
      My Computer


  5. Posts : 265
    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. Posts : 16,946
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #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. Posts : 31,650
    10 Home x64 (22H2) (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. 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


  9. Posts : 9
    Windows 10 Pro
       #9

    Hello, can someone write for me a correct Robocopy syntax to transfer the "created date" from a video .mp4 file inside a folder "original" to a video with the same name stored into the folder "encoded"?
    I throw the eye on the Microsoft guide linked by Wiley but it is too complicated.

    I would be happy to also evaluate other simpler utility maybe with a GUI if existing.

    PS: there isn't only one video but 31 to which I have to apply this procedure.
      My Computer


  10. Posts : 16,946
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #10

    What do you mean by
    Kerpert said:
    ... a video with the same name stored into the folder "encoded"?
    ?

    The RoboCopy syntax is given in post #6.

    Denis
      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 11:20.
Find Us




Windows 10 Forums