Robocopy /DST switch doesn't seem to work

RichardB_1977 1 Reputation point
2020-11-05T20:17:10.017+00:00

I am trying to copy data between 2 GFS shares using a Windows server 2012 box as a pass through. Since Daylight Saving Time change. i noticed the files had a time difference of 1 hour on the source and destination. When i try to use the /DST switch i get a return that says invalid parameter. Any ideas on how to resolve?

Robocopy command:

robocopy Source Destination /E /ZB /FFT /DST /COPY:DAT /TEE /R:0 /W:0 /LOG:c:\Install\Batch\Logs\Data1.txt

output:

Started : Thu Nov 05 19:41:25 2020

Source - Source
Dest - Destination

Files :
Options : /FFT /S /E /COPY:DAT /ZB /R:1000000 /W:30


ERROR : Invalid Parameter #6 : "/DST"

  Simple Usage :: ROBOCOPY source destination /MIR

        source :: Source Directory (drive:\path or \\server\share\path).
   destination :: Destination Dir  (drive:\path or \\server\share\path).
          /MIR :: Mirror a complete directory tree.

For more usage information run ROBOCOPY /? or read Robocopy.Doc.

NOTE: Read "True Replication" in Robocopy.Doc prior to first use of /MIR !
*** /MIR can DELETE files as well as copy them !

Thank you,

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Jenny Yan-MSFT 9,356 Reputation points
    2020-11-06T08:25:33.557+00:00

    Hi,
    1.What if you remove /DST from your command, will other error message appear?

    2.Kindly check the robocopy version and path via below command and verify if any old version existed.
    gcm robocopy | fl *

    Looking forward to your update.

    Best Regards,
    Jenny

    0 comments No comments

  2. RichardB_1977 1 Reputation point
    2020-11-06T14:28:26.757+00:00

    HI,

    If i remove /DST, the copy runs. However it copies every file that is present in the source and destination as "Newer". I am trying to complete a delta sync to capture new and changed files.

    Robocopy version:
    PS C:\Users\cap_win03> gcm robocopy | fl *

    HelpUri :
    FileVersionInfo : File: C:\windows\system32\Robocopy.exe
    InternalName: robocopy
    OriginalFilename: robocopy.exe.mui
    FileVersion: 6.3.9600.16384 (winblue_rtm.130821-1623)
    FileDescription: Microsoft Robocopy
    Product: Microsoft® Windows® Operating System
    ProductVersion: 6.3.9600.16384
    Debug: False
    Patched: False
    PreRelease: False
    PrivateBuild: False
    SpecialBuild: False
    Language: English (United States)

    Path : C:\windows\system32\Robocopy.exe
    Extension : .exe
    Definition : C:\windows\system32\Robocopy.exe
    Visibility : Public
    OutputType : {System.String}
    Name : Robocopy.exe
    CommandType : Application
    ModuleName :
    Module :
    RemotingCapability : PowerShell
    Parameters :
    ParameterSets :

    thank you for the help.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.