RoboCopy 101

Most of you might have used it earlier, but I started to use this wonderful tool, ROBOCOPY, since last few months. Couple of months back, I was performing a database migration, where the backup file of the source database was very big and I had to copy it to the new environment before starting the restore. As the link between the environments was not very fast, a senior colleague from my team asked me to use Robocopy for copying the backup file. We need to record the time required to copy the file and speed of file transfer. I found the tool was very helpful, so want to document the same.

Robocopy is a free tool from Microsoft, and its part of the Windows Server 2003 Resource Kit tools. You can download the same from here. Once you install the software, you will get a list of useful tools, RoboCopy is one of them. Another benefit of using Robocopy is, it can copy the security permissions of the file, if both source and destination drive are having NTFS permissions. The syntax of using Robocopy is to copy a file from source environment to destination environment is:

robocopy "source dir" "destination dir" filename

For a complete list of available switches with Robocopy, type Robocopy /? .Using this tool, I was able to copy that backup file, within few hours.


The below screen-shot display the use of Robocopy to copy a VHD file from my laptop to my Home Lab server, which include the start time, end time, and the speed to copy the file.


Hope this may help you someday Smile


About Sudeepta Ganguly

A SQL Server User... Still Learning
This entry was posted in Desktop Virtualization, How To, HyperV, Just Learned, Tools and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s