
Quote: Originally Posted by
Golden
Hi Bomber,
Your Outlook Calender is stored in the .PST file you use. So, if you backup the .PST file (using jsquareg's method, or simply by copying & pasting into a backup location (e.g. external USB drive) using Windows Explorer, then you are also backing up the calender.
Note : if you manage seperate accounts in seperate .PST files, then you may have more than one calender - simply backup all the required .PST files.
Make sure you exit and close Outlook completely, before you backup your .PST files.
Regards,
Golden
You are absolutely correct about closing Outlook completely -- I learned the hard way!
Actually, my batch file contains the following surrounding the xcopy command(s):
REM Backup Outlook Data Files
@echo Outlook Data Files to F: Drive .....
TASKLIST /NH | FIND /I "Outlook.exe" > nul
SET NodLevel=%ERRORLEVEL%
IF %NodLevel%==0 GOTO IsRunning
@xcopy "d:\Outlook Data Files\*.*" "F:\Outlook Data Files" /D /Y /s
@echo Outlook Data Files to X:\
@xcopy "d:\Outlook Data Files" "X:\Outlook Data Files" /D /y /s
@echo ......
GOTO LEAVEOUTLOOK
:IsRunning
echo CANNOT BACK UP OUTLOOK PST FILES BECAUSE OUTLOOK IS RUNNING
:LEAVEOUTLOOK
The code will not execute the xcopy if Outlook is running.
Thanks for pointing out that point.