home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / plusbkup.zip / PLUSBKUP.DOC < prev    next >
Text File  |  1987-02-27  |  3KB  |  73 lines

  1.  
  2.  -- PLUSBKUP.PRG --
  3. DBASE III PLUS LARGE FILE BACKUP PROCEDURE
  4.    By Joel Wasserstein, 1987
  5.  
  6.  
  7. DID YOU EVER HAVE ONE OF THOSE FILES....
  8.  
  9.      I knew I was in trouble when 4000 database records came to just under 
  10. one meg on the hard drive.  I had no intention of having my dBASE III system 
  11. "run" the DOS BACKUP: I wanted the Backup/Restore procedures to be 
  12. integrated with my total system design.  What I give you here is a 
  13. generalized version of my solution...  
  14.  
  15. PLUSBKUP:
  16.    Queries you for the Hard Drive's Letter,
  17.                    the NAME of the .DBF file you wish to backup
  18.                    the PATH which leads to the .DBF file.
  19.    Computes the number of floppy diskettes you will need for the backup.
  20.    Prompts you as to when to change floppies, how many records are being 
  21.         copied, and what file name is assigned to the file on the floppy.
  22.    Gives you the chance to get out TWICE before committing yourself to the 
  23.         backup.
  24.    Backs your megafile up as smaller dBASE III files.
  25.    Takes about 4 to 5 minutes to fill a floppy disk with dBASE III records.
  26.  
  27. INSTRUCTIONS
  28.    Install PLUSBKUP on the same directory as your dBASE III PLUS resides.
  29.    Call it up with DO PLUSBKUP. 
  30.    Enter the drive and name of the file you wish to back up.
  31.    Enter the path if the file is in another subdirectory.
  32.    If the file is not found, PLUSBKUP terminates.
  33.    If found, PLUSBKUP tells you how many backup diskettes you need, and then 
  34.     gives you the chance to abort so you can go and format them if you need 
  35.     to.
  36.    PLUSBKUP then prompts you to enter the first disk.  If the file will fit 
  37.     on one floppy, you will not be asked to change disks.  If the file needs 
  38.     multiple floppies, you will be prompted to exchange them.
  39.  
  40. WHAT's on this diskette.
  41.     PLUSBKUP.DOC - what you're reading now.
  42.  
  43.     PLUSBKUP.PRG - the dBASE III PLUS Program 
  44.  
  45.     DB3BKUP.PRG - For all you non-upgraded types (like me at home.)
  46.  
  47. NOTE 1: Both programs ask for a path.  However, DB3BKUP does not use it in 
  48. the same manner as PLUSBKUP.  PLUSBKUP "SETS" the path.  DB3BKUP appends the 
  49. path to the input file name.  While I could have done in PLUS what I did in 
  50. DB3 (append the pathname to the filename) I chose to use the convention 
  51. dBASE III PLUS implements, on the theory that those who have dBASE III PLUS 
  52. would be using it this way as well.
  53.  
  54. NOTE 2: You can also use the routines to back up smaller harddisk databases.  
  55. There is no minimum backup size.  A maximum is dictated by a maximum of 
  56. 9 floppy disks;  How big a database would fit on 9 floppy disks depends to 
  57. some extent on record size.  However, the program is not set up to abort if 
  58. more than 9 disks are required...You can continue to process the backup, but 
  59. be aware that DOS will truncate file names in excess of eight characters;  
  60. therefore, if you have a file with a NAME 7 or 8 characters long, the name 
  61. on backup disks 10 and up will be identical to that on backup disk 1.
  62.  
  63. NOTE 3: If the NAME of your database is 7 characters or less, the datasets 
  64. on the floppys will be the name of your dataset with numbers from 1 to 9 
  65. attached.  If the name of your database is 8 characters long, PLUSBKUP will 
  66. drop the last character and append the number in its place.
  67.  
  68. NOTE 4: Feel free to change the source code to meet your needs.   
  69.  
  70.  
  71.  
  72.  
  73.