2K Pro Backup Doc - Iomega Drive
Previous Topic  Next Topic 

**The customer must be made aware that on 2000 machines the second page of the file save report DOES NOT mean they are getting a back up to the Rev Drive. They are only getting a backup to the hard drive as with the first page. They would have to browse the Rev Drive itself to see if it is working**


This document describes setting up NT and D3 to do a backup in D3 first to a file, then an NT backup to tape. Backups can still be done within the D3 environment only, but since that only backs up what is in D3 that is not going to work. Also, NT backup skips files that are in use so the D3 backup has to complete before the NT backup starts or else the file will not be backed up. All other programs and files on the server should be closed when a backup is run.



Setup the Iomega Drive




Setup the REV Disk



Create BACKUP.BAT



mkdir c:\oldlogs

move /y "c:\Documents and Settings\administrator\Local Settings\Application Data\Microsoft\Windows NT\NTbackup\Data\backup*.log" c:\oldlogs

ntbackup backup systemstate C:\ /m normal /l:s /v:yes /f “c:\backup\ntbackup.bks”

copy "c:\Documents and Settings\administrator\Local Settings\Application Data\Microsoft\Windows NT\NTbackup\Data\backup*.log" c:\WINNT\BACKUP.LOG /y

del e:\backup\ntbackup.bks

copy c:\backup\ntbackup.bks e:\backup\ntbackup.bks

C:\PRINTLOG.BAT


NOTE: the backup is going to the HD drive first, if there is not enough space on the disk then you will only be able to save only the perfection data. Change the batch from C:\ to C:\SAVES.


NOTE: the following section should be placed at the beginning of the backup.bat by the installer on site.


DEL S:\FS.BACK3

REN S:\FS.BACK2 FS.BACK3

REN S:\FS.BACK1 FS.BACK2

COPY C:\SAVES\FS S:\

REN S:\FS FS.BACK1

DEL C:\SAVES\FS.BACK3

REN C:\SAVES\FS.BACK2 FS.BACK3

REN C:\SAVES\FS.BACK1 FS.BACK2

COPY C:\SAVES\FS C:\SAVES\FS.BACK1

                   

                                                       


Create PRINTLOG.BAT


Now the PRINTLOG.BAT batch file needs to be created.


PATH C:\program files\d3\d3programs

D3TCL -c "SP-ASSIGN F0" -c "RUN PM.PROGRAMS,UTIL.PGM, PRINT.BACKUP.LOG C:/WINDOWS (P"


(Change this to the correct sp-assign statement for the printer you want to print to)


This will print a pared down version of the backup log created by NT backup. It will not print the skipped file messages or the directories backed up. It will print a total of directories and skipped files at the end. Also note the forward slash (/) in C:/WINNT. The slash is reversed when running programs in the D3 environment.


Create shortcuts, folders, and files




Test Backup


Before Registry edits can be performed, a backup must be performed. To run a test backup, go to Start, Programs, Accessories, System Tools, Backup.

You may get a message warning about a new import media. At this screen, check Always allocate this media to Backup if it is compatible, then OK.

Click backup tab, browse to C:\tech\Docs and check the docs folder. Change Backup Destination to tape drive to click Start Backup, click Advanced, check Verify data after backup, click OK, click Start Backup, close all applets when done



Registry Edits



You can modify the following registry entries to adjust the skipped files options:

HKey_current_user\Software\Microsoft\Ntbackup\User Interface


   Name:            Skip open files

   Type:            REG_SZ

   Default:         0

   Definition:

   0 = do not skip, wait

   1 = skip files that are opened unreadable

   2 = wait on open files for "Wait time"


   Name:            Wait time

   Type:            REG_SZ

   Data:            30

   Definition:

   Maximum time (seconds) to wait for open files. Default is 30 seconds.

   Maximum value is 65535


Recommended method: Set "Skip open files" to 1 and "Wait time" to 1



Task Scheduling


NOTE: Before you can edit the registry settings a backup using NTBACKUP and Task Scheduling must be done first.


This Last Section Must Be Done After Data Is Loaded


Please create and verify that the following steps are complete.


3. Make a directory on the D drive called Saves. (ex: D:\SAVES)

4. In the DM account: Make sure the dev-make command (ex: dev-make -t tape -a "d:\saves\fs,p") is created in the USER-COLDSTART.

5. Type in T-STAT to verify the device# for the T-SELECT command.

6. At TCL in the Account that you are doing the D3 backup from (usually PM), type: U MASTER FS.TAPE.COMMAND and enter the T-SELECT command with the proper unit number.

7. At TCL in the Account that you are doing the D3 backup from (usually PM), type: U MASTER VERIFY.CMD and enter the verify command (ex: T-VERIFY (TP99).


MASTER NTBACKUP.CMD

1. Create a MASTER file entry called NTBACKUP.CMD. This will execute automatically as a Scheduling Job as soon as the D3 backup is done. The only drawback is that if the D3 backup fails and gets stuck then the NT backup will not execute either.

2. At TCL in the Account that you are doing the D3 backup from (usually PM).

3. U MASTER NTBACKUP.CMD and put the path and batch file name of the NT backup. (Ex. C:\BACKUP.BAT).

The file-save program will automatically issue the command: "AT time+90seconds C:\BACKUP.BAT /interactive". This will cause the batch file to execute in 90 seconds from the current time the file-save finished.


Either way, you will get TWO file-save reports. One from D3 and one from NT backup.



YOU ARE NOT DONE UNTIL YOU TEST THE ENTIRE BACKUP PROCESS.


Run the file save program from the system menu in PM. Watch the entire process and look for any error messages. After it is done you will have two printouts. Look for any error messages on those printouts.


If you do not get two printouts then it is NOT working so you will have to fix something.


If you can seem to make it work, do a manual NT Backup to make sure you get a tape backup. Do that in: Start -> Programs -> Administrative Tools -> Backup.