RoboCopy Options

Posted on 2009-02-18
Last Modified: 2013-12-01
Hi guys,
             just setting up a large file transfer and replication between two folders and wanted to confirm my command. The files are "My Docs" and so protected. i want to ensure that once the first wave of copy is complete when i run the command again i will not just over write the existing files. This will be upto 40Gig at a time so i want to keep it as small as possible.

robocopy.exe F:\Users b:\Users /s /e /XO /zb /R:1 /W:5 /TEE /log+:b:\report\Users_Folders.txt

Any Advances?>
Question by:ncomper
    LVL 67

    Accepted Solution

    Should be fine as long as you do not want to delete files which do no longer exist, and are not interested in the security information (access rights)
    LVL 63

    Assisted Solution

    Is this a one time or not ?

    I would add dates to the log files so that you have a history

    sample of what I use for copying a monthly backup using maxage

    @echo off
    for /f "tokens=2-4 delims=.:/-, " %%u in ('date /t') do (
      for /f "skip=1 tokens=2-4 delims=/-,()." %%x in ('echo.^|date') do (
        set %%x=%%u
        set %%y=%%v
        set %%z=%%w))

    rem set
    rem echo "test date" > c:\bin\%dd%-%mm%-%yy%.txt
    robocopy e:\ j:\back /S /MAXAGE:34 /TS /FP /NP /TEE /XJ /R:1 /W:2 /LOG:e:\data\rcopy-E-J-%mm%-%dd%-%yy%.txt


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
    The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
    This tutorial will give a short introduction and overview of Backup Exec 2014 and the additional features that have been added over its predecessor Backup Exec 2012. As with Backup Exec 2012, the Backup Exec button in the upper left corner. From her…
    The viewer will learn how to start File History, a MACINTOSH like backup utility built into windows 8, on your Windows 8 computer. To open the File History control panel swipe from the right  side to get the search menu or position the cursor in the…

    794 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

    17 Experts available now in Live!

    Get 1:1 Help Now