ntbackup parameter /n

  • Thread starter Thread starter Helmut Schmalzl
  • Start date Start date
H

Helmut Schmalzl

Hello NG,

I am backing up my data on a DLT-tape via commandline (scheduled task) and
everything works fine.
There is only a small problem with the naming of my medium.
I use the parameter /n in the following way:

/n "Media created date/time"

When entering the restore-window of ntbackup I can read the following:

"Media created date/time" instead of e.g.: "Media created 12/08/2003/01:36"

What am I doing wrong?

Thanks in advance for helping me!



Helmut Schmalzl
 
Hello

We use the following in are batch file to get date & time

for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do set dt=%%i/%%j/%%k/%%
for /f "Tokens=1" %%i in ('time /t') do set tm=@%%
set dtt=%dt%%tm
set medianame=Media created %dtt

The parameter /n should be used as follows

/n %Medianame

The medianame is shown as "Media created Wed/11/26/03@2:00a

P.S

You can also use the %date% and %time% variables
 
Back
Top