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

Backup your important files with RoboCopy

by

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)

Technology Channel Posts

  • Cell Phones + Social Networks = Love?
    [caption id="attachment_262" align="alignnone" width="128" caption="Social Networks"][/caption]Wireless industry ready to interface with Facebook, MySpace and Bebo Everybody at this week's Mobile [...]
  • LG X120 Netbook
    LG Electronics has announced it is launching their newest netbook called the LG X120. The laptop is a cute one with only 10.1″ screen with backlit. Powering it is an Intel Atom processor [...]
  • Uniea Haptique HardShell Case for MacBook
    This hardshell cases for the new MacBook aluminum are made of ABS plastic coupled with soft touch coating. It offers a textured feel, almost leather like, and protects the surface of the laptop [...]
  • Haier shows off it's offerings to the masses
    [caption id="attachment_1757" align="alignnone" width="600" caption="Haier netb ook, G1 and G2"][/caption]The fine folks over at Haier shows off mysterious "NetBooks," Android phones Haier's [...]
  • Hackers target Gamers
    [caption id="attachment_887" align="alignnone" width="128" caption="Xbox"][/caption]Although I'm not a gamer, everyone should be aware of hackers and malware. According to microsoft, What's the [...]
  • Microsoft Equips Individuals With New Training Resources Needed for Jobs
    [caption id="attachment_733" align="alignnone" width="109" caption="Microsoft"][/caption]Second time around for this bit of news, but very apropos in today's business climate. Microsoft Corp. [...]
  • LG Phone's Transparent Keypad Expected to "Make A New Fashion Statement"
    [caption id="attachment_259" align="alignnone" width="950" caption="Transluscent Phone"][/caption][caption id="attachment_258" align="alignnone" width="500" caption="LG GD-900"][/caption]Firmware or [...]
  • Preorder Nokia N86 at Expansys
    [caption id="attachment_1754" align="alignnone" width="162" caption="Nokia N86"][/caption]Engadget breaks this story: European markets can expect to see Nokia's N86 handset on or about July 22, [...]
  • Microsoft Tests Vista SP2, Readies Windows 7 Updates
    [caption id="attachment_884" align="alignnone" width="116" caption="Vista"][/caption]Lots coming out of Redmond these days. Service Pack 2 for Windows Vista and Windows Server 2008 is reportedly [...]
  • Five Steps to an E-friendly Résumé
    [caption id="attachment_730" align="alignnone" width="128" caption="Resume on Outlook"][/caption]With today's economy and layoffs, we all need all the help we can get when searching for jobs. MSN [...]

Hot Off The Press