Site Meter Microsoft Office » Blog Archive » Backup your Outlook PST file

Backup your Outlook PST file

by Joshua Lewis

Keyboard

If you’re an Outlook user, you may not know, but all of your email messages, contacts, calendar appointments, etc are stored in a .PST file. PST stands for “Personal Folder File”, and can be quite handy when you want to consolidate everything for backups.

But how do you back THIS file up?

Sure, you can do it through the import/export wizard in Outlook, but the whole point in being productive is to automate the menial tasks. So I’m going to show you how to do it.

To begin with, you’ll need to download the Windows 2003 Resource Tools, since we’ll be using robocopy. Also, you’ll need to check and see if your system has Taskkill, and if not, download it. To check, go to the command prompt (Click “Start->Run”, type “cmd”, and at the prompt type “taskkill”. If you DONT get a line saying it cant be found, then you have it. If you dont have it, get it from the above link and drop it in to your windows\system32 directory).

Ok, now that you have the tools, bust out Notepad, and cut and paste the following into it, saving it with a .bat extension.

@echo off
taskkill /f /im OUTLOOK.EXE
robocopy “X:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook” “X:\Backup” *.* /S /PURGE /NP /XO
“C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE”

You’ll need to change the “X:” to correspond with your setup, as well as the backup destination. Also, double check to make sure your path to “Outlook.exe” is right. If not, just change it here.

So what does this script do? Well:

  • taskkill /f /im outlook.exe closes any instances of Outlook running. If it’s open when you try and run this, you’ll get an error.
  • The “robocopy” line copies the .pst file to the backup location
  • The third line restarts Outlook. If you dont want it to reload once the backup is done, omit this line
  • Save the file with a .bat extension, add it to your scheduled tasks, and you’re done!

    , , , , , , , , ,


    2 Responses to “Backup your Outlook PST file”

    1. Chris Says:

      Yeah, great insults…
      More to the point, add this bit to a logoff script on a AD GPO, and i think you have a nice little work around for folder redirection / offline files NOT backing up pst files in the application dir. (cause this is default behavior in win 2003 / XP environments.

      Of course to be nice is should be able to use %directory% references, like %username%, so it can be plugged in generically and apply to everyone.

      anyway, thanks for the idea, i think i’m going to work on it tomorrow at work.

      = )
      stupid shits lol

    2. Rok Says:

      I agree that side by side with simplicty it can cerate problems and will utilize a lot of bandwidth, which in our company can bring the networks down. after a lot of searches decided to use edgesafe from datamills (http://www.datamills.com).

    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 [...]