home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR2 / CYB26.ZIP / CYB.DOC next >
Text File  |  1993-08-14  |  10KB  |  198 lines

  1.                 CYB - Cover Your Back(up) Version 2.6
  2.                            August 14, 1993
  3.           (c) 1990-93 Marc R. Feldesman - Flying Pig Software
  4.                          All Rights Reserved
  5.  
  6. CYB is a DOS utility program I wrote to monitor the backup status of my hard disks
  7. at boot time.  Actually, I wrote it to remind and to harass my secretary about
  8. backing up the hard drive in her office.  It resulted from a particularly cat-
  9. astrophic hard disk failure that destroyed valuable documents and programs
  10. that she had not backed up in a timely manner.
  11.  
  12. WHAT DOES IT DO:
  13.  
  14. CYB is designed to warn the user if he/she has exceeded the maximum number
  15. of days allowed between backups, or if, at boot time, it is the user's
  16. regular day to back up the system.   Each time the program is used, it also
  17. gives the user a list of the files that have been modified since the last time
  18. any backup was done.  This way, the USER decides how much risk attaches to
  19. NOT doing a full or incremental backup.  The program is straightforward to run.
  20. Copy CYB.EXE into your root directory.  Then add the following line to your
  21. AUTOEXEC.BAT file :
  22.  
  23.               CYB <filename> <day> <number> <drive>
  24.  
  25. where <filename> is the full directory path (including the file name itself)
  26. for the catalog file produced by your backup program, <day> is the NAME of
  27. the day of the week when you routinely plan to backup your system (and want to be
  28. reminded to do it), <number> is some whole NUMBER reflecting the maximum number
  29. of days allowed between full system or incremental backups, and <drive> is
  30. the LETTER of the hard disk drive whose backup status you are checking
  31. (e.g. C, D, etc - it doesn't really make any sense to use the letters A or B).
  32. While the program will not let you enter an invalid drive, it behooves you to
  33. use only valid drive letters with <filename> and <drive>.  If you give CYB an
  34. invalid drive with <filename> the program will report that you have no current
  35. backup catalog, remind you to backup your system, and then give you a list of
  36. the files not backed up on <drive>.  If <drive> is invalid, the program traps
  37. the error and insists upon you giving it a valid drive letter.
  38.  
  39. My AUTOEXEC.BAT file contains the following specific command line:
  40.  
  41.               CYB c:\pcbackup\backup1.set Friday 7 c:
  42.  
  43. The program reports the following outcomes:  current day of the week, current
  44. date, and the date of your last backup. If the backup is more than <number>
  45. days old, or if today is the day you specify to be your normal backup day,
  46. CYB warns you that the backup is xx number of days old and SUGGESTS that you
  47. backup your system.  Under all circumstances, the program uses a recursive
  48. directory search to give you a screen listing of all the files that have changed
  49. since the date of your last backup.  It does so by checking the archive bit on
  50. each file.  All of the backup programs, including DOS BACKUP, reset the archive
  51. bit when the file is officially backed up.  Subsequently the archive bit is re-
  52. set again whenever the file is changed.  The recursive directory search used in
  53. this program is adapted from the functions Jake Richter published in Turbo-
  54. Technix (Volume 1, Number 6, September-October 1988).  Mr. Richter's clearly
  55. written article inspired me to make the modifications in CYB to incorporate
  56. this useful feature.
  57.  
  58. The program assumes that you are using one of the commercial backup programs
  59. (e.g. PC Tools, Fastback) that leave an audit trail catalog of
  60. the backup set somewhere in a user-specified  location on the hard disk.
  61. In early versions of the program, I didn't really think too much about users
  62. who used the DOS supplied program BACKUP or who used non-floppy disk based
  63. backup systems (e.g. streaming tapes).  The user never has been prevented
  64. from using CYB with one of these alternate procedures; I just wasn't clever
  65. enough early on to figure out how.  (See below now for a simple way to use
  66. CYB with DOS BACKUP or tape backup systems).
  67.  
  68. Please note that CYB isn't specific to the aforementioned programs.  Many com-
  69. mercial backup programs store a catalog of the files in the backup set some-
  70. where on the hard drive (e.g. PC Tools calls its backup file CDDMMYY.XXX;
  71. Fastback calls its backup catalog FASTBACK.CAT).
  72.  
  73. FASTBACK PLUS, DOS BACKUP USERS, and PC Tools Deluxe Version 5 users - please
  74. see note at end.
  75.  
  76. The program depends on the date and time being properly set.  Unless you use
  77. the date and time functions properly, the results won't be meaningful.  If you
  78. are running this program on an IBM PC/XT or compatible, your AUTOEXEC.BAT file
  79. should contain a call to the program that reads your real time clock.   CYB
  80. should be run AFTER the call to your realtime clock.  If you don't have a clock
  81. in your system, your AUTOEXEC.BAT file should contain one line with a call to
  82. DATE and the following line with a call to TIME.  You should get in the habit
  83. of SETTING the correct date and time when you first boot your system.
  84.  
  85. FASTBACK PLUS NOTES
  86.  
  87. The new version of Fastback (Fastback PLUS) no longer uses FASTBACK.CAT as
  88. the catalog name. Instead, the date of the backup has become an integral part
  89. of the filename itself.  Thus, a typical FASTBACK catalog will look like
  90. YYMMDD_A.HIS, where YY is the year of the backup, MM is the month, and DD is
  91. the date.  Since the filename is no longer consistent, CYB will accept a
  92. wildcard for the filename.  I recommend that your command line look something
  93. like the following if you are using Fastback PLUS:
  94.  
  95.                   cyb c:\fastback\*_A.his Sat 7 c:
  96.  
  97. The * is a wildcard that substitutes for the actual filename.  If we knew the
  98. filename, we wouldn't have to bother running CYB; since the FASTBACK Plus file-
  99. name contains the date as part of its name, obviously we would know when we
  100. last did a backup.  If you have more than one logical (or physical) hard drive
  101. that you have backed up, FASTBACK Plus' catalog files will look like
  102. YYMMDD_A.HIS, YYMMDD_B.HIS, etc.  You should run CYB once for each DIFFERENT
  103. logical or physical drive in your machine.
  104.  
  105. DOS BACKUP USERS:
  106.  
  107. The success of CYB depends on the backup program leaving an audit trail in the
  108. form of a catalog.  Since BACKUP doesn't write a useable form of such a beast,
  109. users have been thwarted from using CYB.  Of course, CYB doesn't care what
  110. the actual content of the log file is.  CYB only checks for the existence of
  111. a log file.  Thus, users who use BACKUP as their backup program need only do
  112. the following to permit CYB to work properly.
  113.  
  114.         1.  Make certain that DATE and TIME are properly set.
  115.         2.  Backup the system using BACKUP
  116.         3.  Immediately following the backup, log on to the root
  117.             directory of the harddisk and enter the following
  118.             command at the "C" prompt:
  119.  
  120.             C:>dir >backup.cat
  121.  
  122.             This generates a disk file containing the directory of
  123.             the root directory.  This file is called BACKUP.CAT.
  124.  
  125.          4. Now set up the autoexec.bat file to contain a line like:
  126.  
  127.             cyb c:\backup.cat <day of week> <number of days> <drive>
  128.  
  129. This will work like a charm.  You just need to remember to do this each
  130. time immediately after performing your backup procedure.
  131.  
  132. PC Tools Deluxe Version 5 Users:
  133.  
  134. This version of PC Tools Deluxe does not leave an audit trail catalog
  135. on the hard drive.  Instead it places the audit trail catalog on the last disk
  136. in the current backup set.  There are two ways to resolve this problem.  The
  137. first is to employ the same technique recommended for the DOS Backup users (see
  138. above).  The alternate technique is to use the program's ALT-S (save setup)
  139. command.  This produces a file carrying the current date and time that stores
  140. information about the default parameters for the current backup set.  I simply
  141. name my file "backup1.set" and use CYB to search for it at boot time.
  142.  
  143. NON FLOPPY BACKUP USERS NOTE:
  144.  
  145. The above procedure will also work with non-floppy disk based backup systems.
  146. Again, the only thing you need to do is create a dummy catalog using the pro-
  147. cedure described above.
  148.  
  149.  
  150. OTHER FUNCTIONS:
  151.  
  152. For users not interested in CYB as a boot time program, or don't want to
  153. be nagged about backups, CYB can also be used just to get a listing of files
  154. that have changed since the last backup.  The command to do this is:
  155.  
  156. C:>cyb /<drive>      [DO NOT FORGET THE "/"]
  157.  
  158. where <drive> is the LETTER of the disk drive you want to check.  
  159. The program will not let you enter an invalid drive letter.
  160.  
  161. Users who wish to run CYB as a program from an ordinary C: prompt may do so
  162. without problems.  Use a command line like the following:
  163.  
  164.                    C:>CYB c:\pcbackup\pcbackc.log Friday 7 c:
  165.  
  166. OTHER NOTES:
  167.  
  168. CYB is DOS program intended to run at the time you first boot up your com-
  169. puter.    It is intended to run from the autoexec.bat file and should precede
  170. the call to run Windows (if you run under that system).  While it will run
  171. under Windows (see description immediately above), it doesn't make a great
  172. deal of sense as a Windows application.
  173.  
  174. =============================================================================
  175. Money and Legal Matters:
  176.  
  177. CYB is distributed as Shareware.  You are free to share it with your friends or
  178. upload it to bulletin boards or information services, providing the entire com-
  179. pressed file (commonly called an archive file) is uploaded without modification.
  180. If you find that you use CYB regularly, you should send me a $10.00 donation at
  181. the address listed below.  If CYB is used in a commercial or business environ-
  182. ment, you are REQUIRED to send me $10.00 for EACH copy in use.    Site licenses
  183. can be negotiated for a reasonable fee.
  184.  
  185. If you have any suggestions for modifications or find any "bugs", please let me
  186. know the specifics in writing at the address below.  CYB is distributed without
  187. warranties of any kind.
  188.  
  189. Dr. Marc Feldesman
  190. Flying Pig Software
  191. 4210 SW Comus
  192. Portland, Oregon 97219
  193.  
  194. PC Tools is a registered trademark of Central Point Software;  Fastback
  195. and Fastback PLUS are registered trademarks of Fifth Generation Systems.
  196.  
  197.  
  198.