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

Backup your Outlook PST file

by

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!

    , , , , , , , , ,


    5 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).

    3. trz Says:

      Nice Article. Keep up The Good work.
      Thanks for the information!!

    4. Alex Says:

      In this situation recommend use this utility-view pst file,which to my mind is freeware,also it has many other features,program can help to restore a mailbox,stored on Microsoft Exchange Server or a file with *.pst extension,tool belongs to programs that view .pst,it will process any file,it is safe to work even with damaged files,will perform necessary actions, you can see a preview window,that shows recovered folder tree and emails in a preview mode,can convert your file to a file with *.pst extension, that follows the original structure,viewing pst files without Outlook is not usually needed on a regular basis.

    5. mutu26 Says:

      At work with outlook files advise use next tool-outlook fix,as far as i know program is free,it is used by a great many of individuals and businesses every day for a wide variety of tasks that require 100% stability and reliability: storing emails, business and personal contacts, as well as other important information, such as appointments, tasks and notes,restore data after internal software errors, power failures or hard drive crashes, let alone other possible reasons,can also be used to recover data from Microsoft Exchange .ost files and convert them into Microsoft Outlook .pst files,allows you to easily repair damaged .pst files and recover your information by making a few easy steps,knows how to fix Microsoft Outlook perfectly well, it will prompt you for the data recovery method you would like to use,saving the output data either as a single .pst file or as a set of .eml, .vcf and .txt files,can be easily imported by other applications supporting these formats, such as Microsoft Outlook Express or Windows Address Book.

    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


    Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0

    Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0