Skip to content

Backup with Robocopy

February 14, 2010

Considering my main computer stores important data such as documents, mail, music and more on its single Samsung Spinpoint F1 750GB hard drive with a 600GB data partition, having a backup is essential.

Having tried the built-in backup function when I tested the Windows 7 Release Client was not satisfied with it, although it can make a full operating system drive backup next to backing up data.

T_Win7_Roboycopy_01

Needing a backup solution, looked at not only what tools were already available to me but also what I desired from that backup. Still having a Western Digital 500GB hard drive and Icy Box external enclosure lying about, wanted to use those as backup location. Plus, expected the data on that disk to be readily available should it be connected to another computer.

Eventually a colleague suggested running a simple batch script using Robocopy, so read up on its use at TechRepublic and successfully applied it to back up my data.

Robocopy is included by default into Windows Vista and Windows 7. Primarily designed for reliable mirroring of directories, it does lack a user friendly interface and requires you to create your own custom script including the proper command line options. (Although a version with a graphical interface is apparently available on Microsoft’s Tech Net.)

Nonetheless, creating your own batch file using Robocopy proves fairly straightforward. In all it took me little over 10 minutes to do so, which included testing it and I can now run it by simply clicking the appropriate shortcut on the desktop.
(Alternatively you can program it to run on a schedule using the schedule tasks option.)

While not ideal to back up the Windows system partition with, the advantage of Robocopy is that when selecting the mirroring option, it will create and keep a perfect copy of your data, which was my goal.

Copy + pasting the entire data partition in Windows Explorer was an option if I fancied tying up my computer for hours on end each day or week. If a lot of data is involved, Robocopy in mirror mode will only require a significant amount of time when you run it first, on the following runs will only copy those files that are new or have been changed. You can also set Robocopy to keep a log file, which can be handy.

While it has disadvantages over more elaborate backup software tools, Robocopy does the job for me and while some may feel reluctant about the initial hurdle of creating a batch with command options, it’s a challenge easily overcome using the TechRepublic article as a guide.

8 Comments leave one →
  1. February 14, 2010 8:05 pm

    I’d also recommend taking a look at SyncToy, which is very user friendly. It’s one of the original Powertoys made by Microsoft that has survived various OS iterations.

    http://www.microsoft.com/downloads/details.aspx?familyid=C26EFA36-98E0-4EE9-A7C5-98D0592D8C52&displaylang=en

    I have it scheduled to run once a day at work to back my docs up from my laptop to server. :)

  2. February 14, 2010 8:18 pm

    @Asian Ed
    SyncToy looks interesting as well, I might have to try it out. Thanks for the tip.

  3. February 14, 2010 11:22 pm

    Who is that on the wallpaper? =O

  4. February 15, 2010 3:04 am

    Interesting, Robocopy huh. I have my WHS running for sometime now so I am not in a hurry to explore new options, but it sounds nice to have something like that come standard with the OS.

  5. February 15, 2010 5:15 pm

    @D
    That’s Nanako, one of the newer Windows 7 mascot girls they introduced for their Bing campaign in Japan. She comes with a whole Windows 7 theme pack, see more here: http://bluebluewave.wordpress.com/2010/01/29/windows-7-moe-theme/
    She’s been my favorite out of the five theme pack girls so far.
    @Wolfheinrich
    Well I don’t have a WHS (yet) so this particular solution was quick, convenient and cheap.

  6. February 15, 2010 6:32 pm

    Ah, Windows xD

    I wrote a bash script to run all my backups in Linux. Automatically tars/gzips all my files together and rsyncs them to a remote server. And it’s all executed on a set schedule with cron ;)

  7. February 15, 2010 8:07 pm

    @anonymous_object
    When I used Mandriva Linux, really liked their Drakbackup option. It took some reading up on as the user interface while convenient enough did require knowing what a few key options mean but it always worked very smoothly.
    Only downside I experienced with it was that it couldn’t detect when my external drive was plugged in or not so it would create a backup from scratch if that drive was disconnected.

  8. February 16, 2010 12:54 am

    @Smithy:

    Thanks, Didn’t know there were more theme girls besides Nanami!

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

Follow

Get every new post delivered to your Inbox.

Join 446 other followers