ntbackup



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



.



Relevant Pages

  • Re: RoboCopy question
    ... It works perfectly well in every regard but since you did not specify a drive or folder for your log file it ended up who knows where but certainly not where you expected it. ... REM Set the log file name based on the current date. ... I found a sample batch file to back up folderto an external drive. ... It would also help if you posted your whole robocopy command line. ...
    (microsoft.public.windows.server.general)
  • Re: Where to find the backup log file
    ... >> write a VBSript to email the log file to me after NTBackup is completed. ... > Below is a batch file that will pick the latest file. ...
    (microsoft.public.win2000.general)
  • Re: Feedback on backup script
    ... Have yopu possibly thought about using the "NTBackup" tool in a DOS/batch ... REM These are the "ntbackup" parameters and switches used; ... REM If the verify is aborted then nothing is written to the log file to ... The script only backs up local paths, ...
    (microsoft.public.scripting.vbscript)
  • Re: Backup Scripting?
    ... Reply If you need help setting up a desktop icon to run your backup. ... REM These are the "ntbackup" parameters and switches used; ... REM /j "Description" The backup job description/title, used by ntbackup for the log file name. ...
    (microsoft.public.windows.server.scripting)
  • Re: Automated Backup Help
    ... backup process in Windows Server 2003 so that I could make it easier for my ... file to function again or provide me with another batch file or script I ... REM These are the "ntbackup" parameters and switches used; ... REM If the verify is aborted then nothing is written to the log file to ...
    (microsoft.public.windows.server.scripting)