home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 201.lha / Backup.DOC < prev    next >
Text File  |  1988-12-27  |  15KB  |  289 lines

  1.  
  2.                            Backup 1.0
  3.  
  4.                   Program and documentation by
  5.  
  6.                           Jimbo Barber
  7.                           P.O. Box 3414
  8.                    Clearwater, Florida  34630
  9.                          (813) 441-8402
  10.  
  11.  
  12.  
  13. What Backup is NOT:
  14.  
  15.      Backup is NOT a hard disk backup utility.  Just wanted to
  16. get that straight.
  17.  
  18.  
  19. What Backup IS:
  20.  
  21.      Backup is a utility that allows you to automatically (and
  22. unattended) backup from 1 to 25 individual files from any
  23. AmigaDOS device to any other device, including hard drives and
  24. RAM disks.  It also allows you to specify the amount of time
  25. between backups, from 1 minute to over 16 hours.  You may also
  26. specify the amount of memory to be used for the copy buffer, from
  27. 1K to over 1 megabyte.  Backup makes full use of the Amiga
  28. Intuition (windows, pull-down menus, gadgets, etc), and even
  29. displays the amount of time remaining until the next backup.
  30.  
  31.  
  32. What is Backup used for?
  33.  
  34.      Backup was designed specifically for Bulletin Board System
  35. (BBS) Sysops.  It allows a Sysop to put message base files, user
  36. files, and any other files into RAM, for maximum speed.  Backup
  37. will then copy these files from RAM back onto disk for safe
  38. keeping.  It performs this backup completely unattended, and at
  39. time intervals that you specify.  This program is a must for
  40. floppy based BBS systems, because running from floppy means a
  41. painfully slow message base.  It is also very useful for BBS's
  42. run from hard drives.  A RAM based message base will always be
  43. faster than even the fastest hard drive, and this program can
  44. save a GREAT deal of wear and tear.  Instead of the hard drive
  45. constantly reading and writing, it only writes when the Backup
  46. program copies the message base from RAM back to disk.
  47.  
  48.      Very few (if any) Sysops currently place the message base in
  49. RAM, simply because if the power goes out, all new messages will
  50. be lost.  Backup takes care of that worry by copying the entire
  51. message base back to disk as often as you like.  Backup runs
  52. unattended, 24 hours a day, just like your BBS, making sure your
  53. important information is safely on disk.
  54.  
  55.  
  56. Is Backup only for BBS's?
  57.  
  58.      Not at all.  Backup is for anyone who needs automatic file
  59. backup over a period of time.  You specify the files to backup,
  60. and you specify where they are coming from and going to.  Maybe
  61. you are a SuperBase user who likes to keep your database in RAM
  62. for quick access?  A power outage or GURU after a couple of hours
  63. work would not be fun.  Let Backup copy your database files back
  64. to disk automatically every ten or fifteen minutes.  If you have
  65. a need for automatic backup of individual files, this is the
  66. program for you.
  67.  
  68.  
  69. Who thought up this great program?
  70.  
  71.      I must give credit where credit is due.  I actually wrote
  72. the program, but the original program idea came from Bill Ott of
  73. St. Petersburg, Florida.  He runs a BBS entirely from floppies,
  74. and wanted to safely put the message base and user files in RAM.
  75. This program is the result.  I also extend to him special thanks
  76. for beta testing the program for me at various stages.  For those
  77. who are curious, Backup is written entirely in Benchmark
  78. Modula-2.  Definitely the fastest development system around.
  79.  
  80.  
  81. So, how does this marvel of modern computer science work?
  82.  
  83.      Ah, now down to the heart of the matter.  Backup consist of
  84. a single program file, called Backup.  Place this file on
  85. whatever disk you wish to use it from.  Placing it in the c
  86. directory is a good idea, so the operating system can find it no
  87. matter what your default directory is.  There is also an icon
  88. included, for those who use the Workbench.
  89.  
  90. I suggest you always RUN Backup from the CLI (or just double
  91. click from Workbench)-->(Example:  1> run Backup)    Backup will
  92. then open a small window on the top left corner of your display,
  93. and show the minutes remaining until the next backup occurs.  If
  94. run from Workbench, Backup will open another small window for any
  95. messages it may give.  At this point you haven't defined anything
  96. yet, so it is using the defaults of a 30 minute backup cycle, a
  97. 30K buffer, and no files to backup (so it actually won't do
  98. anything if you let the clock run all the way down).  You may
  99. also notice that the CLI you ran Backup from now says "Unable to
  100. open BACKUP.DAT data file.  I will create a new one."  Backup
  101. creates a data file in the current directory called BACKUP.DAT,
  102. which holds all the backup information (filenames, buffer size,
  103. etc).  You will only see this message the first time you run
  104. Backup, or if you delete the BACKUP.DAT data file.  More on the
  105. BACKUP.DAT file later.
  106.  
  107. So you now have the Backup window with a countdown started.
  108. Click on the window to make sure it is active (not on the close
  109. gadget or front-to-back gadgets, please!).  Now press the right
  110. mouse button and you should see a pull-down menu.  On this menu
  111. you have the choices "About Backup", "Preferences" and "Quit".
  112.  
  113. "About Backup" will bring up a large window in the center of your
  114. screen with the credits.  The graphic you see here may look
  115. bizarre, because it is using your workbench colors.  I decided
  116. not to change them while this window is open because I didn't
  117. want to make everything else around it look bizarre.
  118.  
  119. "Preferences" lets you tell Backup how to do its work.  When you
  120. choose this menu option, a large window will open in the middle
  121. of the screen.  You will see numerous gadgets here for entering
  122. numbers and characters.  There is something very important you
  123. must remember:  Whenever you type in one of these gadgets (either
  124. in an empty gadget or editing existing information), you MUST
  125. press RETURN when you are finished.  If you don't press RETURN
  126. before leaving the gadget, the new information will not be saved.
  127. Always press RETURN after entering information into a gadget.
  128.  
  129. Now let's run through all the "Preferences" options.  The top
  130. gadget (which will have a default of 30 the first time you run
  131. the program) is the amount of time (in minutes) between backups.
  132. You may enter any value from 1 to 999 (a little over 16.5 hours).
  133. If using Backup with a BBS, a delay of 30-45 minutes is a good
  134. choice.  The average BBS user will normally be on the system at
  135. least that long, so more frequent backups are not really
  136. necessary.  Feel free to experiment though, and see what is best
  137. for your system.
  138.  
  139. The next gadget down allows you to specify the size of the copy
  140. buffer in K's (thousands of bytes).  For example, the default
  141. value is 30, so the copy buffer will be 30K or 30*1024 = 30720
  142. bytes.  You may enter any value from 1K (1024 bytes) to 999K
  143. (over 1 megabyte).  The higher the buffer size, the faster the
  144. backup.  You do not have to worry about running out of memory
  145. when the backup starts.  If you don't have as much free memory as
  146. you've specified, the program will try to allocate half as much.
  147. If there still isn't enough free memory, the program will try to
  148. allocate half as much again, all the way down to a mere 512
  149. bytes.  If Backup can't get 512 bytes free, it will abort the
  150. process and return to the CLI.  Point is, feel free to specify a
  151. large buffer if you wish.  The program will handle it if it can't
  152. find that much memory.  Keep in mind that a large buffer probably
  153. won't make that much difference if the source file is in RAM.
  154. Data is read so quickly from RAM that a large buffer makes little
  155. difference.  If the source file is on disk though, a large buffer
  156. speeds things up greatly.
  157.  
  158. Next is the DELETE gadget.  This button deletes the filename,
  159. source device, and destination device currently displayed below
  160. it.  This is useful when you've been using a certain setup for
  161. awhile, and decide there is a file you no longer want backed up.
  162. Simply get that file in the gadgets and click DELETE.
  163.  
  164. Beside DELETE is the number of the current filename being
  165. entered/edited, and PLUS/MINUS buttons.  Clicking the PLUS and
  166. MINUS buttons will let you rotate through the filenames you've
  167. entered.  After entering all the files you want backed up, it is
  168. a good idea to use the PLUS and MINUS buttons to rotate through
  169. them all one last time to check for errors.  If you see a
  170. filename or other piece of information is not as you entered it,
  171. then you probably forgot to press RETURN!  Remember, always press
  172. RETURN after entering information into a gadget.  Also, don't
  173. worry about empty file records as you DELETE entries or browse
  174. with the PLUS/MINUS buttons.  The information will be packed
  175. together by the program.  For example, say you enter information
  176. at file record one, and then use the PLUS key to skip up to file
  177. record nine and enter information.  The next time you enter
  178. "Preferences", the two file records will be together in spaces
  179. one and two.
  180.  
  181. Next are the filename, source device, and destination device
  182. gadgets.  ALL THREE OF THESE MUST BE FILLED IN AT THE SAME TIME!
  183. There always has to be three pieces of information for every file
  184. you want backed up.  If you enter a filename, then there MUST be
  185. a source device and a destination device.  Always remember to
  186. press RETURN after entering information in these gadgets.  If you
  187. leave any one of these blank while entering information in the
  188. other two, things will really get messed up and you'll probably
  189. have to delete the BACKUP.DAT file and start again.  Filenames
  190. and device names can be upper or lower case, and follow the
  191. standard AmigaDOS format.  You can enter path names if you wish,
  192. as long as they fit in the 14 character limit of the source and
  193. destination device gadgets.  Be very careful to enter filenames
  194. correctly here.  You can NOT use spaces in filenames, but you can
  195. use special characters like the underline.  If you do enter a
  196. filename incorrectly, AmigaDOS will generate an error when the
  197. program starts its first backup, and Backup will abort with an
  198. error message.  You will have to run the Backup program again and
  199. correct the error.
  200.  
  201. There are three ways to exit the "Preferences" window.  CANCEL
  202. loses any changes you have made.  Both DONE and the normal window
  203. close gadget (top left corner of window) will save your changes
  204. in the BACKUP.DAT file and close the window.
  205.  
  206. The BACKUP.DAT file is the real heart of the Backup program.  It
  207. is created the first time you run the program, and is updated
  208. each time you leave "Preferences" (unless you choose CANCEL, of
  209. course).  It contains all the information in "Preferences", so
  210. you don't need to type it all in again each time you run the
  211. program.  Backup looks for it on startup, and uses the
  212. information there if found.  This way, you only need to specify
  213. all the backup information once (filenames, buffer size, etc),
  214. and Backup will start up ready to go from then on.  The
  215. information in the BACKUP.DAT file is in standard ASCII format,
  216. and may be edited with a word processor, text editor, or even ED
  217. from the CLI.  If you edit BACKUP.DAT as an ASCII file, the
  218. format of the data will be quite apparent, because it follows the
  219. same format in which it is displayed in the "Preferences" window.
  220. Just make sure you don't change the format when editing.  You can
  221. also edit all the information by entering "Preferences" and
  222. changing it.  The choice is yours.
  223.  
  224. The last pull-down menu option is "Quit".  The window close
  225. gadget in the top left corner of the main Backup window (the one
  226. with the countdown timer) has the same effect as "Quit".  When
  227. you exit the program, it will do the specified backup one last
  228. time.  This is to ensure that a recent backup has occurred.
  229.  
  230. IMPORTANT:  If the program encounters any error it can't handle
  231. (not enough memory, filename incorrect, etc), it will abort
  232. completely (stop running and return to the CLI).  You will know
  233. this happens because the main Backup window will disappear.  It
  234. will also print an error message in the CLI that starts with
  235. "Backup message:" and more or less explains the problem.  If the
  236. error message says something about source or destination, then
  237. odds are that a filename you've given is either incorrect or not
  238. where you said it would be.  If an AmigaDOS requestor pops up and
  239. says "Insert volume (whatever) in any drive", then you have an
  240. error in the source or destination specification.
  241.  
  242. A few hints, tips, and reminders:
  243.  
  244.      * Always press RETURN after entering or editing information
  245. in a gadget.
  246.  
  247.      * Use the PLUS/MINUS gadgets in the "Preferences" window to
  248. check your work after entering the file information.
  249.  
  250.      * If you get totally fouled up editing in the "Preferences"
  251. window, exit the program, delete the BACKUP.DAT file, and run the
  252. program again to start over.
  253.  
  254.      * After entering all the file information for the first
  255. time, change the amount of time between backups to something very
  256. small, like one or two minutes.  Then you won't have to wait very
  257. long to see if all the information has been entered correctly.
  258. Once it completes one backup, you can then enter "Preferences"
  259. again and reset the time to whatever you choose.
  260.  
  261.      * BBS Sysops, there are two things to keep in mind.  1) If
  262. your message base is in RAM, and you use Backup to copy it back
  263. to disk, then there is always a chance that you will lose some
  264. messages if you have a power outage.  The messages lost will be
  265. from the last automatic backup until the power outage.  However,
  266. if you keep the backup time between 30-45 minutes, you run the
  267. risk of losing very little (normally just the messages of a
  268. single user).  2) The risk is very slim indeed, but it is always
  269. possible that you might experience a power outage WHILE the
  270. Backup program is writing the message base to the disk.  If this
  271. happens, you lose both the message base in RAM, and the one on
  272. disk (since it was in the middle of being written).  Therefore,
  273. it is VERY important that you still make a complete backup of
  274. your BBS (or maybe just the files being backed up) at least once
  275. a week to different diskettes.  This will prevent you from losing
  276. everything.  Keep in mind though, that the odds of this happening
  277. are very small.  The most important point of all is that both
  278. these risks are well worth it for the incredible SPEED your BBS
  279. will have!  There's just no message base like a message base in
  280. RAM.  Even if you already run from a hard drive, your users will
  281. really notice the difference!
  282.  
  283.      * If you will be using this program to backup a BBS, you
  284. will probably need expansion memory (more than 512K).  The Backup
  285. program itself doesn't require much memory, but having a message
  286. base of any size in RAM will.  Therefore, I suggest you have 1
  287. meg of RAM or more before attempting to run a RAM based BBS.
  288.  
  289.