redirect the output of NTBACKUP

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:blush:n /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:blush:n /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:blush:n /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!
 
P

Pegasus \(MVP\)

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:blush:n /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:blush:n /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:blush:n /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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Ntbackup wont run 2
ntbackup force overwrite 5
w2k server ntbackup problem 3
ntbackup 2
NTbackup Help 3
Schedule problem with NTBACKUP 7
Windows 2000 NTBackup.exe Problems 1
Backup: Mediapools 1

Top