redirect the output of NTBACKUP

  • Thread starter Thread starter nobuteru
  • Start date Start date
N

nobuteru

Hi all!
it's the first time that i write on this ng.

I have a problem with ntbackup on a win2k server, i want to redirect the
result of the backup process on a logfile, because i need to store it in
a particular directory with a particular name, so for me isn't good the
default filename and destination directory.

the command is this :

c:\winnt\system32\ntbackup.exe backup "@c:\documents and
settings\administrator\local settings\application data\microsoft\windows
nt\ntbackup\data\domenica.bks /n "domenica" /d %computername% /v:yes
/r:no /rs:no /hc:on /m normal /j "domenica" /l:s /p "4mm DDS" /um >>
c:\backup\prova.log

i also try :

c:\winnt\system32\ntbackup.exe backup "@c:\documents and
settings\administrator\local settings\application data\microsoft\windows
nt\ntbackup\data\domenica.bks /n "domenica" /d %computername% /v:yes
/r:no /rs:no /hc:on /m normal /j "domenica" /l:s /p "4mm DDS" /um >
c:\backup\prova.log

and :

c:\winnt\system32\ntbackup.exe backup "@c:\documents and
settings\administrator\local settings\application data\microsoft\windows
nt\ntbackup\data\domenica.bks /n "domenica" /d %computername% /v:yes
/r:no /rs:no /hc:on /m normal /j "domenica" /l:s /p "4mm DDS" /um >>
c:\backup\prova.log 2>&1

but it always create an empty file!

the backup process is ok at 100%, i just add >> (or >) to the end of the
command line!

someone can help me?

thanks all

bye!
 
nobuteru said:
Hi all!
it's the first time that i write on this ng.

I have a problem with ntbackup on a win2k server, i want to redirect the
result of the backup process on a logfile, because i need to store it in
a particular directory with a particular name, so for me isn't good the
default filename and destination directory.

the command is this :

c:\winnt\system32\ntbackup.exe backup "@c:\documents and
settings\administrator\local settings\application data\microsoft\windows
nt\ntbackup\data\domenica.bks /n "domenica" /d %computername% /v:yes
/r:no /rs:no /hc:on /m normal /j "domenica" /l:s /p "4mm DDS" /um >>
c:\backup\prova.log

i also try :

c:\winnt\system32\ntbackup.exe backup "@c:\documents and
settings\administrator\local settings\application data\microsoft\windows
nt\ntbackup\data\domenica.bks /n "domenica" /d %computername% /v:yes
/r:no /rs:no /hc:on /m normal /j "domenica" /l:s /p "4mm DDS" /um >
c:\backup\prova.log

and :

c:\winnt\system32\ntbackup.exe backup "@c:\documents and
settings\administrator\local settings\application data\microsoft\windows
nt\ntbackup\data\domenica.bks /n "domenica" /d %computername% /v:yes
/r:no /rs:no /hc:on /m normal /j "domenica" /l:s /p "4mm DDS" /um >>
c:\backup\prova.log 2>&1

but it always create an empty file!

the backup process is ok at 100%, i just add >> (or >) to the end of the
command line!

someone can help me?

thanks all

bye!

You cannot redirect the output from ntbackup to your own file - it goes
automatically to one of 10 files in this folder:

C:\Documents and Settings\%UserName%\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data
 
Back
Top