home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / INCRBACK.ZIP / INCRBACK.DOC < prev    next >
Encoding:
Text File  |  1986-12-25  |  5.9 KB  |  138 lines

  1.  
  2.  
  3.     INCRBACK  --- Documentation
  4.  
  5.         This package documents an alternative to full DOS Backups. It 
  6.     provides a quick way to keep up-to-date with your back-ups without 
  7.     spending a lot of time at it. It is based on the assumption that you 
  8.     start with a full DOS backup. If you use this system you should find 
  9.     yourself taking FULL backup's less while maintaining better data 
  10.     security. 
  11.  
  12.         There are two parts to this package - One a modification to DOS's 
  13.     backup program to make it a bit more useful; and Two a program to help 
  14.     keep track of what files need to be backed up. Each part can be used 
  15.     stand-alone but the intent is for them to be used together. 
  16.  
  17.         This is NOT shareware! Please use it as you see fit. If you like 
  18.     it pass it on. If you have any problems or suggestions you can drop me 
  19.     a line at any one of the following boards.
  20.  
  21.  
  22.         Annapolis Local      RBBS   301 268 5821     2400   8-N-1 
  23.         Capitol PC Msg Ctr   RBBS   301 956 3396     2400   8-N-1 
  24.         Cheasapeake          RBBS   301 267 4930     2400   8-N-1 
  25.         Laurel               RBBS   301 498 7283     2400   8-N-1 
  26.         Lutherville Xtrbo 2  CLUS   301 252 0717     2400   8-N-1               
  27.         The Saloon           PCBD   301 757 9075     2400   8-N-1 
  28.  
  29.    
  30.     Step 1 - Modify DOS' BACKUP
  31.  
  32.         DOS' BACKUP command has a lot of useful options. One allows you to 
  33.     backup based on date and another based on whether a file has been 
  34.     modified. The trouble with the date option is that if you get a 
  35.     program, off a BBS or from a friend, whose date is earlier than the 
  36.     one you generally specify, it ends up not being backed up. You can use 
  37.     a public domain utility to change the date but you no longer have any 
  38.     idea when the program was created. 
  39.  
  40.     A better option is to use the /M option to backup any file that has 
  41.     been modified regardless of date. The problem with using the modify 
  42.     option is that from week to week you end up backing up the same file 
  43.     to multiple diskettes. I have found that I usually have one or two 
  44.     main files and a bunch of little files spread over a bunch of 
  45.     diskettes. Additionally, in either case you don't have an easy way to 
  46.     see what you have backed up. 
  47.  
  48.         One solution to this is to modify a COPY of DOS' BACKUP program to
  49.     NOT reset the ARCHIVE bit once the file has been backed up. This 
  50.     allows you to build on a collection of files from day to day or week 
  51.     to week. Each set of BACKUP's will be complete with all the files 
  52.     modified since the last full backup. 
  53.     
  54.         The following is a captured DOS debug session to modify the BACKUP 
  55.     command. It was done using PC-DOS 3.1 but the procedure to search the 
  56.     code and find the AND DF instruction should be the same for prior 
  57.     versions of PC/MS DOS.
  58.  
  59.     C:\TEST>copy \dos\backup.com \test
  60.  
  61.     C:\TEST>ren backup.com backarc.com
  62.  
  63.     C:\TEST>debug backarc.com
  64.  
  65.     -scs:100 fff 80 e1 df  <---- Search for AND CL,DF instruction
  66.     46B3:0B76        <------|
  67.     46B3:0C34        <--------------- A couple of possibilities
  68.  
  69.     -uC30            <------ Back up a couple of instruction from the last
  70.                              one and Un-Assemble.
  71.  
  72.     46B3:0C30 8A0E7207      MOV     CL,[0772]
  73.     46B3:0C34 80E1DF        AND     CL,DF      <---- Resets the Archive Bit
  74.     46B3:0C37 B80143        MOV     AX,4301    <---- Function CHMOD Get/Set
  75.     46B3:0C3A CD21          INT     21         <--|  File Attribute
  76.     46B3:0C3C 8B1EE505      MOV     BX,[05E5]     |
  77.     46B3:0C40 8B0E7307      MOV     CX,[0773]     |-- DOS Function Call
  78.     46B3:0C44 8B167507      MOV     DX,[0775]
  79.     46B3:0C48 B80157        MOV     AX,5701
  80.     46B3:0C4B CD21          INT     21
  81.     46B3:0C4D B43E          MOV     AH,3E
  82.     46B3:0C4F CD21          INT     21
  83.  
  84.     -ecs:C36         <------ Edit the address containing th "DF"
  85.  
  86.     46B3:0C36  DF.__ <------ Enter FF and return
  87.  
  88.     -w               <------ Write out the modified code.
  89.  
  90.     Writing 15C9 bytes
  91.  
  92.     -q               <------ Quit Debug routine
  93.  
  94.     C:\TEST>         <------ Back at the DOS Prompt
  95.  
  96.  
  97.     Step 2 - The List Archive Program. (LARC)
  98.  
  99.         This is a simple program based off of a routine I downloaded from 
  100.     Compuserve and subsequently modified. It will check the entire disk 
  101.     and list each file it finds with the modify bit on. Additionally, the 
  102.     program will list the time and date each file was modified and 
  103.     estimate how many floppies will be required to do the backup. The 
  104.     source code is included so if the program does not work the way you 
  105.     think it should you can modify it for your own purposes. However, if 
  106.     you modify it please do not distribute it under my name. I have enough 
  107.     bugs to be responsible for with my own code. 
  108.  
  109.     LARC has two parameters /P to pause at the end of each screen and d: 
  110.     to specify alternative drives. The output can also be redirected to 
  111.     the printer for hard copy.
  112.     
  113.     Step 3 - Putting it all together.
  114.  
  115.         Again, the basis of this method is starting out with a FULL DOS 
  116.     BACKUP (You do have one don't you!). After that the following BATCH 
  117.     file should keep you adequately protected for weeks. When do you do 
  118.     another FULL BACKUP? That's up to you. This system will slowly 
  119.     increase the number of floppies required. When the number gets out of 
  120.     hand do another FULL BACKUP.
  121.  
  122.     INCRBACK.BAT
  123.                   
  124.             CD \
  125.             Echo ON
  126.             Pause Turn on Printer and .....
  127.             Echo Off
  128.             LARC > Prn
  129.             BACKArc C: A: /s/m
  130.  
  131.     Note: The BATCH file above assumes BACKARC and LARC are in a directory 
  132.     pointed to by your PATH statement.
  133.  
  134.  
  135.  
  136.                                    Jim Wetzel
  137.  
  138.