Robocopy from OMV to OMV - Working Command

  • I could not Robocopy, experiencing the commonly reported security errors when I ran the command:


    robocopy \\<sourceserver>\<sourceshare> \\<targetserver>\<targetshare> /ETA /MIR /ZB /MT:25 /COPYALL /SECFIX /R:1 /W:1 /log+:c:\FileCOPY.log

    Source: https://portal.nutanix.com/pag…ion-example-robocopy.html


    I have used this command in many successful migrations but it reported security issues on the destination side.



    The issue was researched. Others had success with running /copy:DATSOU and /copy:DAT.


    I eventually ended up using /SEC and /SECFIX. /SEC copies files with the security equivalent of /copy:DATS.

    Reference: https://learn.microsoft.com/en…windows-commands/robocopy



    The command I eventually used successfully is:

    robocopy \\nas01\share\documents \\nas02\share\documents /ETA /MIR /ZB /MT:128 /SEC /SECFIX /R:1 /W:1 /log+:"c:\RoboCopyLogs\documents.log"


    I suspect there are issues with NTFS permissions on 2 different boxes. They can not match, since they are not on the same domain like an Active Directory scenario. If you have specific permissions that need to be carried over, you can manually reapply them to the destination after the file migration.

  • Have a look at freefilesync if you want to do it via windows. As long as you can connect to the two shares and have read/write capability it will work.


    FreeFileSync
    Download FreeFileSync 12.1. FreeFileSync is a free open source data backup software that helps you synchronize files and folders on Windows, Linux and macOS.
    freefilesync.org

  • I also could not Robocopy on the root share. I had to do the folders. It was not too bad.


    Good to see FreeFileSync as an option. I will check that out. I start looking at rsync but was too tired to try something new.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!