Trying to copy Data with Robocopy

Posted on 2012-08-21
Last Modified: 2012-08-22
Hello Experts,

I am trying to copy data from one File server to the other. I am using RoboCopy in order to copy the data as I wanted the NTFS permissions to come with the data but it keeps on skipping the majority of files. I am using the following syntax:

net use \\localhost\ipc$ /user:domain\Administrator Password
robocopy "C:\Data_old" "\\Server2\C$\Data_old" /COPYALL /V /ETA /TEE /LOG:"C:\DATA_OLD_COPY_LOG.txt" /R:10 /W:30
net use \\localhost\ipc$ /del

On the log it is just telling me the skipped files but not why.


                Total    Copied   Skipped  Mismatch    FAILED    Extras
     Dirs :         1         0         1         0         0         0
    Files :        20         0        20         0         0         0
    Bytes :   41.57 m         0   41.57 m         0         0         0
    Times :   0:00:00   0:00:00                       0:00:00   0:00:00

    Ended : Tue Aug 21 09:37:12 2012

I am copying from a Windows server 2008 server to a WS 2008 R2

Has any body got any ideas?

Question by:sgarces
    LVL 82

    Accepted Solution

    Because you already have files in the target folder, and robocopy will (by default!) skip files that re already in the target folder (if the files have the same size and the same date).
    What you're probably missing is either "/s" or "/e" to copy subdirectories under "Data_old" as well, or /mir to mirror the complete directory tree (that means as well deleting files in the target folder that aren't in the source folder anymore!).
    And since you're writing to a log file, I'd recommend to add /np and remove the /eta.
    LVL 3

    Expert Comment

    i would suggest that you use SyncToy which is a utility from Microsoft and is easier than Robocopy imho.

    Author Closing Comment

    I added the Switches into /e and / mir into my batch file and it worked as it should have done. Thanks alot oBdA.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
    I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
    This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
    This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now