Announcement

Collapse
No announcement yet.

Robocopy XP207 /b option

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Robocopy XP207 /b option

    All,

    I thought I'd share some useful tips I've discovered about using Robocopy XP207 (the version shipped with Windows 2008 R2).

    If you're using Robocopy XP027 and you want to use the /b option to migrate files and folders to which your migration account does not have permissions to access, then:

    * Ensure that your migration account has the 'Backup files and directories' and 'Restore files and directories' right under User Rights and Assignments on BOTH the source and target Windows server.

    * Place the /b option (copy files/folders as if Robocopy is running as a backup agent skipping permission restrictions) in the Robocopy Syntax at the END OF THE ROBOCOPY COMMAND LINE in order for this feature to work.

    * Even if you're logged onto the server as a Domain Admin, then run your Robocopy command from a command window that you've opened with the 'Run As Administrator' option or start your Robocopy batch file with the 'Run As Administrator' option.

    * Apply the Robocopy hotfix (KB97980 , if you're running Robocopy XP027 on a Windows 2008 Server R2 system.
    If you run Robocopy with the following options, then it will migrate files/folders and achieve the criteria listed below:

    robocopy.exe sourcepath targetpath /MIR /xo /xj /dcopy:t /copy:datso /secfix /v /FP /MT /e /z /r:0 /w:0 /log+:c:\temp\logfile.log /b /zb

    Multi-threaded copy
    Date & times of original file and folder modification times/dates copied from source - full copy
    Date & times of original file and folder modification times/dates copied from source - inc copy
    Only copy files with a newer date on source than on target during Inc copy
    Root folder permissions copied across during Full copy
    Root folder permissions copied across during Inc copy where permissions have changed since Full copy
    Sub-folder permissions copied across during Full copy
    Modified Sub-folder permissions copied across during Inc copy
    File permissions copied over during Full copy
    File permissions copied over during Inc copy where permissions have changed, but file has not
    File permissions copied over during Inc copy where permissions have changed and file has changed
    Root folder and sub-folder inheritance settings maintained during full copy
    Root folder and sub-folder inheritance settings maintained during inc copy
    File inheritance settings maintained during full copy
    File inheritance settings maintained during inc copy when file inheritance changed, but file content not changed
    File inheritance settings maintained during inc copy when file inheritance changed and file content changed
    Owner information on folder copied over during Full copy
    Owner information on folder copied over during Inc copy
    Owner information on file copied over during Full copy
    Owner information on file copied over during Inc copy
    Log file records successful copies & errors

    Files deleted after Full copy from source are removed from target as part of copy process

    Hope this helps!

    Rgds, Adrian.

  • #2
    Re: Robocopy XP207 /b option

    Many thanks!
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment

    Working...
    X