Looking for a script for NTbackup to a unique file name

  • Thread starter Thread starter Al Dykes
  • Start date Start date
A

Al Dykes

I frequently run ntbackup to a second partition on my hard disk as a
first level backup (there are others, believe me.)

I'd like to schedule this. I can't find a script that creates a unique
file name for the BKF file. A name that includes the date, or is an
ascending number would be great.

Thanks
 
Al Dykes said:
I frequently run ntbackup to a second partition on my hard disk as a
first level backup (there are others, believe me.)

I'd like to schedule this. I can't find a script that creates a unique
file name for the BKF file. A name that includes the date, or is an
ascending number would be great.

Thanks

Have a look at the item "Label a Drive with Current Date",
posted here six hours after your post.
 
Pegasus \(MVP\) said:
Have a look at the item "Label a Drive with Current Date",
posted here six hours after your post.
Oops, thanks for the hint Pegasus, must have overlooked this one :-)

It is to mention that it is a thread in ambnt

X'Post + F'up2 ambn
 
Al Dykes said:
I frequently run ntbackup to a second partition on my hard disk as a
first level backup (there are others, believe me.)

I'd like to schedule this. I can't find a script that creates a unique
file name for the BKF file. A name that includes the date, or is an
ascending number would be great.

The Mount/\Command ".GetLogDate" will create an environment variable
in the format of yyyymmdd to use in creating your backup file name.
For a color-keyed example, see
(http://TheSystemGuard.com/MtCmds/GetValue/GetLogDate.htm#GuardNotes).

The $SEQNUM Function will provide a fixed column Sequence Number
that is left-padded with zeroes (0001, 0002, etc.). See
(http://TheSystemGuard.com/NTCmdLib/Functions/SEQNUM.htm).

Both ".GetLogDate" and "$SEQNUM" are free with the
Advanced NT/2K/XP/K3 Command Library (ntlib.cmd).
See (http://ntlib.com) to request your copy.

*******

-tsg

/-----------------+---------------+----------------------\
| COMPATIBILITY | CLARITY | SPEED |
| Write code ONCE | Make it clear | THEN...Make it fast! |
\-----------------+---------------+----------------------/
400+ command-line resources using ONLY native NT commands!
(http://TheSystemGuard.com/default.asp#MasterCommandList)
 

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

Back
Top