Replicating on Windows 2012 using robocopy

tthurman
Contributor III

Hey all!

I was wondering if anyone was having issues using Robocopy to replicate your Master share to your DP's?

It seems I'm having an issue with Adobe packages copying properly. Something about symlinks?

My question is if there is a better process to do a full drive replication of two Windows SMB shares - automatically?

Sincerely,
TJ

4 REPLIES 4

cstout
Contributor III
Contributor III

Hi @tthurman,

I use robocopy to replicate from my Server 2012 primary dp to a linux based dp in another city and it's working great for me. I just use the batch script below and set it for a nightly run. I also have another version that is used for manual replication.

I didn't write this script. I found it somewhere and plugged in the fields.

@echo off

:: Defaults:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: Replication From Local to Remote:
set _sourcedir01=C:path	opackages-folder
set _destdir01=M:path	omapped-drive
set _options01=/MIR /MT /fft

:: Confirmation:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
echo -------------------------------------------------------------------------------
echo Replication Script:
echo -------------------------------------------------------------------------------
echo.
echo Copying From:
echo ------------------------
echo [%_sourcedir01%]
echo.
echo Sending To:
echo -----------------------------
echo [%_destdir01%]
echo.
echo Press CTRL+C at any time to stop the transfer.
echo.

:: Run Backup Job
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
cls
echo.
echo Updating [%_destdir01%]:
robocopy "%_sourcedir01%" "%_destdir01%" %_options01%

goto _end

:: Exit:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:_end
echo.
echo Backup job complete.

geoffreykobrien
Contributor

I use a modified version of this, and it's working great for a large global deployment.

https://jamfnation.jamfsoftware.com/discussion.html?id=4127#responseChild24180

georgeeerenee
New Contributor

nice article

georgeeerenee
New Contributor

On a computer that is running Windows 7/8/10......the performance of directory tree replication is significantly slower when you use the Robocopy command compared to earlier versions of Windows...it is better to switch on an alternative of it...currently i am using gs richcopy 360 enterprice which has features like copying long file path names, copying NTFS file permissions and is not too costly..