Server 2003, NTBackup Utility, Shadowcopy Service and Network Drives.
I have an interesting scenario I'm trying to resolve here. Namely, I wish to execute a centralized backup of Outlook PST files for my users across my building. The problem is that most users do not log off, or shut down Outlook. This is not a situation that I am able to remedy, as such I need to determine a solution based on the possibility of the PST files being in use/open at any given time.
I found that a workable answer lay here:
http://www.neurophys.wisc.edu/comp/blog/2007/bb20070403_01.asp
Namely, by making use of NTBackup's inherent use of the Shadowcopy service, I could back up the PST file even while it was in use, and push it out to my backup server. I've been testing that over and over and over, and it has worked even when I was actively opening emails from Outlook in that PST file. Ok, great.
Now, what I want to do is take it to the next level. I do not want to implement it as you see there, because that's a push move - I'd have to configure it on each PC. What I want to set up is a 'pull' implementation, where I can run the backup centrally from the mail backup server, and pull the PST file backup onto that location. I planned to do this by creating a batch file which would map a drive FROM Dropbox (my mail backup server), out to the user's machine (for example: \\workpc\C$ ), then using NTBackup to navigate to their PST file and copy it back up.
The problem is this. When I run it in that direction, the file-in-use problem comes into play. I am running NTBackup utility from DROPBOX, which runs 2003 Server Standard. As my test, I manually mapped my Z: drive to the user's PC, and manually ran NTBackup to reach out and pull in that PST file, saving it onto DROPBOX as a backup BKF file.
When I do so, it works sometimes, but other times it will complete with skipped files; here's an example of the log file results:
Backup Status
Operation: Backup
Active backup destination: File
Media name: "outlook-pst.bkf created 3/7/2008 at 4:14 PM"
Volume shadow copy creation: Attempt 1.
Backup of "Z: \\user-pc\F$"
Backup set #1 on media #1
Backup description: "outlook.pst File Backup"
Media name: "outlook-pst.bkf created 3/7/2008 at 4:14 PM"
Backup Type: Normal
Backup started on 3/7/2008 at 4:14 PM.
Warning: Unable to open "Z:\Documents and Settings\username\Local Settings\Application Data\Microsoft\Outlook\local.pst" - skipped.
Reason: The process cannot access the file because it is being used by another process.
Backup completed on 3/7/2008 at 4:14 PM.
Directories: 7
Files: 0
Bytes: 308
Time: 1 second
----------------------
What I don't understand is - if the NTBackup utility in Server 2k3 uses Shadowcopy, why would this happen? Or does it not work if the file you are attempting to backup is on a remote drive, and not on the server itself? I am under the assumption that is the case, in which case I could not implement this from the server out to the PCs.



