ntbackup
- From: useit@xxxxxxx
- Date: Thu, 19 Apr 2007 00:13:04 +1000
It is desired that a ".pst" file can be backed up whilst in use.
Moreover; it is desired that any or many files, or a whole directory
can be copied under the same circumstance.
Other than using ntbackup, has anyone else found a *safe* method of
copying a file whilst it is in use?
If not, has anyone found out how to get ntbackup to actually work from
a batch file consistently. The problem encountered with trying to run
ntbackup from a batch file is; ntbackup runs, but exits immediately.
Nothing is in the log file, even when the switch is set to log
verbosely.
Further; as some would know this is a boring and old issue, and fairly
well known about. There *is* a hotfix for ntuser, but not for this
specific issue anyway.
Also, when this batch file is run, the file "backup.log" that is
created, is empty, and a look in "Event Viewer" yields nothing either.
The batch file tried thus far, follows:
--------------------------------------------
rem This batch file is used in two ways:
rem First it is copied onto the drive of the machine it is being
installed on, then "CUSTOM_USER" is set, and then run manually once,
to set things up
rem Second, a scheduled task is set up to run this every day, so that
it creates an archive of the entire Outlook directory that can be
subsequently copied using rsync
rem Set variable for current dir, and user for whatever machine this
is being set up for
@set APPDIR=%~dp0
@set CUSTOM_USER=smoker
rem Create the correct ".bks" file for the user
@echo C:\Documents and Settings\%CUSTOM_USER%\Local
Settings\Application Data\Microsoft\Outlook> "%APPDIR%Outlook.bks"
xcopy "%APPDIR%Outlook.bks" "C:\Documents and
Settings\%CUSTOM_USER%\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\" /Y
rem Run ntbackup
@C:\WINDOWS\system32\ntbackup.exe backup "@C:\Documents and
Settings\%CUSTOM_USER%\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\Outlook.bks" /a /d
"Daily_Backup" /v:no /r:no /rs:no /hc:off /m normal /j "Daily_Backup"
/l:f /f "C:\Documents and Settings\%CUSTOM_USER%\My
Documents\Outlook_Backup.bkf" >"%APPDIR%backup.log"
@exit
--------------------------------------------
ta
.
- Follow-Ups:
- Re: ntbackup
- From: Kadaitcha Man
- Re: ntbackup
- From: chrisv
- Re: ntbackup
- Prev by Date: Re: Startup
- Next by Date: Re: ntbackup
- Previous by thread: Mouse over menu sensitivity.
- Next by thread: Re: ntbackup
- Index(es):
Relevant Pages
|
Loading