Site Meter Microsoft Office » Blog Archive » Backup your important files with RoboCopy

Backup your important files with RoboCopy

by Joshua Lewis

Everyone has been in the same situation. It’s 2am, you’re finishing up an {insert procastinated project}, and what happens? The computer crashes! Your saved file might work, but what if its corrupted, and you can’t get any recoverable data back? What if it wipes out your collection of family vacations? Sure, you “backup”, copying files to your thumbdrive, CD-R, or whatnot. But you need something more reliable so you can SET IT AND FORGET IT! -thx Ronco

Introducing: RoboCopy (Robust Copy)

RoboCopy is part of the Windows 2003 Resource Tools that can be installed on a Windows machine, and provides more functionality when it comes to copying files. Want to copy only newer files? Robocopy can do it. Want to remove files that are backed up that you deleted from the source? Check. Want to keep autoamte and keep track of what is going on? Ding ding ding ding ding!!!

So, what to do?

  • First, download and install RoboCopy
  • Set up a destination for your backups, whether it’s another directory, drive, remote computer share, etc etc.
  • Open a text editor (I use Notepad for making scripts), and enter your commands (the robocopy manual can help you sort out options)
  • When you save it, enclose the filename in quotes, something like “backup_stuff.bat”. This will change the file extension, otherwise you’ll wind up with a backup_stuff.bat.txt file
  • Once your script is tested and working, add it to your Scheduled Tasks, and you’re done!

Below is a sample script of mine, with a short explanation:

robocopy X:\Source Y:\Destination *.* /S /NP /XO >> logfile.txt

What this does is:

  • Copies all files from the source to the destination (noted by the *.*)
  • /S - include subdirectories
  • /NP - hides the progress (if you’re going to log to a file, you want this option)
  • /XO - exclude files that are older/have not changed
  • >> - appends the results to the file. If you only use one ‘>’, it will overwrite instead.

I forgot to mention, RoboCopy is FREE!

Well, thats it, enjoy your backups!

UPDATE!

Over at Microsoft Talk, theres a story about a GUI version, for those of you who are uncomfortable with the command line.

, , , , , ,


Leave a Reply


About Microsoft Office

We’ll be discussing Microsoft Office products, the suites, updates and upgrades, tips and tricks. There are wonderful programs that Microsoft has come out with, especially Word, Excel and Outlook. There are programs for everyone out there, from home and student workers, small businesses and corporations. So, keep in contact, watch this space, as the saying goes, contact me with your tips, comments

Microsoft Office Author(s)
    » Brick-ONeil

Technology Channel Posts

Hot Off The Press

  • finally, I draw names from a hat
    I've decided it's about time to announce some winners. Who has won what? I'm not sure what I promised, or what people want (I am distressingly vague today) so if your name is on the list, email [...]
  • Onobun, Hill lead big men in frontcourt
    He's built like a linebacker, has the smile of a child and the patience of a saint. After three years of under-accomplishment and the contemplation of a transfer from Arizona, this is finally [...]
  • Statue Unveiled & Shelter Celebrates
    Sid Patterson Statue Unveiled Mayor Kathy Taylor assisted in the unveiling of a statue, "Planting for the Future," commemorating Up With Trees founder Sid Patterson last week. The event took [...]
  • Preview for SPECIAL TNA Thanksgivings
    PREVIEW FOR THURSDAY'S SPECIAL THANKSGIVING "iMPACT!" BROADCAST ON SPIKE TV After the turkey, tune into Spike at 9pm ET for TNA's holiday event This Thursday night, TNA Wrestling returns to [...]
  • FSU weekly news (November 17 - November 21)
    In this edition of FSU Headlines (15:20): - FSU Goes to Omaha - FSU Driving the Future - FSU Making Cents for Students - FSU Going Global - FSU Goes Hands-On with Tuition, Music Subscribe to FSU [...]
  • Seattle Weekend Edition for 11/22/08
    We are just one week from Thanksgiving and just over a month away from Christmas. The Christmas sales are everywhere and stores are doing everything they can to lure your into their stores. Have you [...]
  • Friday Free-for-All - Romance
    Hello and welcome to the Friday Free-for-All! I don't know about you, but I am more than ready for this week to be over... Inspired by the Weekend Soiree over at Wifely Steps (and pretty much [...]
  • The Office Season 5 Episode 8 Frame Toby
    Toby is back at his old HR desk, causing a lot of anxiety for Michael who wasn't aware of this and who still haven't come to terms with Holly, former HR and the love of his life, leaving [...]
  • People Magazine Names Some Sexy Men
    Ok, I'm going to get to all ten of the Sexiest Men of the Year but I'm telling you, I may have to cheat and add some of my favorites in here because, really, they just missed the boat on some of [...]
  • Week-long activities educate about transgender daily lives
    Transgender Awareness Week has brought education and attention about transgender issues. Shannon Jolliff, Office of Gay and Lesbian Programs director, said it has been a success on campus. "The [...]