LISTING 1:
Note: The symbol *
signals a wrapped line.
Sample network backup script
net send <user> Backup Started
rem The next line backs up the local C drive.
A ntbackup backup c: /d "Comment here"/b/hc:on/t normal/l
* "%windir%\LogFiles\backup.log"/tape:0
rem The next line mounts and backs up an NT machine's C drive.
B net use x: \\<workstation>\<sharename> <password>
* /user:<domainname>\Backer
ntbackup backup x: /a/d "Comment here"/hc:on/t normal/l
* "%windir%\LogFiles\backup.log"/tape:0
net use x: /delete
rem The next line mounts and backs up a share on a Win 3.11
* machine.
C net use x: \\<win3.11machine>\<sharename> <password>
ntbackup backup x: /a/d "Comment here"/hc:on/t normal/l
* "%windir%\LogFiles\backup.log"/tape:0
net use x: /delete
net send user Backup Finished