![]() Found this script today, thought I'd share. It runs multiple robocopy instances of robocopy per directory. It just turned my estimated 50 hour copy job to about 6 - 7. ![]() Runs 8 robocopy processes at once by default. I did not make or contribute to this script. # change the number of threads using the "/mt:#" parameter, your backups will run faster by adding two or more jobs to your # This script runs robocopy jobs in parallel by increasing the number of outstanding i/o's to the copy process. # To do this, you need to subdivide the work into directories. That is, each job will recurse the directory until completed. # The ideal case is to have 100's of directories as the root of the backup. # the list of folders to backup and the list is used to feed $ScriptBlock. ![]() # For maximum SMB throughput, do not exceed 8 concurrent Robocopy jobs with 20 threads. Start-Job $ScriptBlock -ArgumentList $_,$src,$dest,$log # $max_jobs Change this to the number of parallel jobs to run ( $log # $dest Change this to where you want to backup your files to # $src Change this to a directory which has lots of subdirectories that can be processed in parallel # the performance by causing disk thrashing looking up directory entries.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |