Posted on 07-28-2014 08:17 AM
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
Posted on 07-28-2014 08:42 AM
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.
Posted on 07-28-2014 09:03 AM
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
Posted on 03-05-2018 05:42 AM
nice article
Posted on 04-18-2018 09:36 PM
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..