Solved

nightly backup of client files from an SBS 2003 server

Posted on 2011-03-05
1
443 Views
Last Modified: 2012-05-11
Every night my client's ShadowProtect backup software saves the entire server to H: which is an external USB drive that is rotated offsite the next morning.

Recently the client requested that files on the 10 client workstations be added to the nightly backup.

The only thing that needs to be backed up is each client's Outlook PST file.

So, I scheduled a  simple dos batch file which backs up all the different pst file names:  

===Csaveall.bat===
    call CSaveStart Cathy
   call  Csave Cathy "\\CPU0418\c$\Documents and Settings...archive.pst"
   call  Csave Cathy "\\CPU0418\c$\Documents and Settings\... inbox.pst"

    call CSaveStart John
    call Csave John "\\CPU0419\c$\Documents and Settings...archive.pst"
    call Csave John \\CPU0419\c$\Documents and Settings\... inbox.pst

… etc etc
    Call CsaveStart User10
    call Csave User10 "….archive..
    call  csave User10 " …inbox"

And, I wrote the following two supporting batch macros  Csave and CsaveStart which don't work quite the way I want.

The problem occurs when a user forgets to sign off at the end of the day.  When this happens, the master macro deletes the old backup then aborts before creating a new backup. Also none of the subsequent user files get saved.  

I can "solve" some of this problem by breaking master batch file into 10 individually scheduled batch files. And, I could probably solve some more by converting it to vbscript. But it seems obvious that this is not a satisfactory way of saving the files.  Does anybody have a more reilable way?

I know that there are third party programs to do this function, but the last time I checked it would have cost a couple thousand dollars for 10 workstations. That seems like overkill for saving 20 files.



Here are the batch files.

===CSAVESTART===
   ::  example CsaveStart janedoe
   echo y |del "h:\%1-1\*.*"
   rmdir "h:\%1-1"
   :: move actually renames a directory, even on very old DOS computers
   move "h:\%1" "h:\%1-1"
   md "h:\%1"  
   
===CSAVE===
   :: example Csave janedoe "\\cpu999\C$\Documents and Settings\janedoe\Local Settings\Application    Data\Microsoft\Outlook\janesoutlook.pst"
   copy %2 "h:\%1\*.*"
0
Comment
Question by:rberke
1 Comment
 
LVL 77

Accepted Solution

by:
Rob Williams earned 500 total points
ID: 35045091
You could use Sysinternal's PSShutDown to force a logoff before running your scripts:
http://technet.microsoft.com/en-us/sysinternals/bb897541
However why are you using pst files anyway? Normally you would use integrated Exchange accounts which create ost files and there is no need to back them up as the 'master' copy is part of Exchange and backed up by ShadowProtect by default.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I've often see, or have been asked, the question about the difference between the Exchange 2010 SP1 version, available as part of Small Business Server (SBS) 2011, and the “normal” Exchange 2010 SP1 Standard. The answer to the question is relativ…
The articles for turning off the Client firewall policy on the internet are for SBS 2008 and don't really help for SBS 2011. They actually moved the Client firewall policy. In 2011, the client firewall policy has moved to the SBS computers conta…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now