Hello,Choose the right replication tool:
Robocopy: This is a powerful command-line tool that supports features such as multi-threading, retry mechanism, recovery mode, and more, suitable for copying large files and large number of files.
Example commands:
robocopy \WindowsServer2019_Production\shared folder D:\destination folder /MIR /MINLATENCY /W:1 /R:1 /LOG+:copy_log.log
PowerShell uses Start-BitsTransfer: Uses PowerShell's BITS (Background Intelligent Transfer Service) for asynchronous transfers, which is suitable for tasks that need to run in the background.
Sample scripts:
Import-Module BitsTransfer
$source = "\WindowsServer2019_Production\shared folder\file name"
$destination = "D:\destination folder\folder"
Start-BitsTransfer -Source $source -Destination $destination -Description "File Copy" -Priority Low
To compress files before transferring, you can use built-in tools such as the Compress-Archive cmdlet.
Example:
$files = Get-ChildItem -Path "WindowsServer2019_ProductionShared Folder" -File
$files | Compress-Archive -DestinationPath "D:Destination Folderarchive.zip" -Force
Transfer the compressed file and then unzip it on the destination server.
Monitor resource usage:
Use Performance Monitor on production servers to monitor CPU, disk I/O, and network usage.
During the replication process, periodically check for resource bottlenecks or abnormal usage.
Scheduled for off-peak hours:
If possible, schedule replication tasks to occur during times when the production server is under low load, such as evenings or weekends, to reduce the impact on normal business.
Consider using a third-party tool:
If built-in tools don't suffice, consider using third-party tools, which often offer more customization options and optimization features.
Have a nice day.
Best Regards,
Hania Lian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.