home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / thcdasd.zip / BACKDASD.TXT < prev    next >
Text File  |  1996-10-29  |  13KB  |  347 lines

  1. BACKDASD UTILITY
  2. ----------------
  3.  
  4. Version 1.00
  5.  
  6. (c) Steve Sharrad, August 1996.
  7. (c) The HENLEY College, August 1996.
  8.  
  9. It is suggested that you make this window full-screen,
  10. if it is not already, by double-clicking on the above title bar.
  11.  
  12.  
  13. All rights reserved.
  14.  
  15. This software is supplied without any warranty whatsoever and is used
  16. entirely at the users own risk. No claims for damages as a result of using
  17. this product will be accepted.
  18.  
  19. This product may be freely copied on the understanding of the above and on the
  20. basis that it is not modified or sold for profit, and that it is supplied with
  21. the readme text files (such as this document).
  22.  
  23. 1.      Introduction and Aim
  24. 2.      Features
  25. 3.      Syntax
  26. 4.      Notes
  27. 5.      Problems
  28. 6.      Suggestion on how to incorporate DASD limits
  29.  
  30.  
  31. 1.      Introduction and Aim
  32. ----------------------------
  33.  
  34.  
  35. 386 HPFS provides the capability to limit the amount of disk space DASD resources take up.
  36. This is especially useful where a large number of users share a limited amount of space.
  37. However, as particular users demands change, you may find that you alter the limits associated
  38. with these resources occassionally.
  39.  
  40. If, however, you needed to restore your system from tape (if, for example, you had suffered
  41. a harddisk failure) then you would get all your data back, and probably all of your access control
  42. lists (ACLs, if you were using an OS/2 backup program which restored directory information, such
  43. as OS/2 Warp Server's Personally Safe'n'Sound, or Sytron's Sytos).
  44.  
  45. However, none of these programs, as yet, backup or restore the directory limit information.
  46. In some cases this is not important, but if you have a large number of users or limited diskpace
  47. (which may soon disappear before you can get all the limits back on at the right size) then this
  48. could be a problem.
  49.  
  50. BACKDASD solves this problem by backing up directory limit information for DASD resources.
  51. It backs up limit size, threshold value and delta, all into an editable text file. This
  52. information can then be restored at a later time by the reverse process, RESTDASD.
  53.  
  54. Not only does this help you to get your system back up and running in an emergency (because
  55. you won't have to worry about details such as DASD limits) but it also gives you the flexibility
  56. to allow you to have different directories having different DASD limits without you having to
  57. continually make a note of any changes.
  58.  
  59. BACKDASD is run from the command line (from within an OS/2 full-screen or Window). It can be run
  60. manually, or for peace of mind, it can be included as part of an AT schedule.
  61.  
  62.  
  63. 2.      Features
  64. ----------------
  65.  
  66.  
  67. BACKDASD has the following features:
  68.  
  69. a)      Remote backup
  70.  
  71. BACKDASD can back up directories or disks on remote servers. You don't have to have an
  72. administrator logged on (or to be logged on at all) to perform a local backup but you must be
  73. logged on as a domain administrator to backup remote servers.
  74.  
  75. b)      Error Log
  76.  
  77. BACKDASD maintains a comprehensive log. If you include BACKDASD as part of an AT schedule, then
  78. you can ask BACKDASD to write an entry into the log upon succussfully completion. You can then
  79. check this log later to check that BACKDASD completed successfully.
  80.  
  81. BACKDASD performs many error checks and these errors are displayed to screen and copied to the
  82. log file. You can, if you want, turn off error reporting (not recommended).
  83.  
  84. c)      Speed Optimization
  85.  
  86. BACKDASD contains three backup engines which are used by BACKDASD as and when appropiate.
  87. For example, imaging your directory strutcure starts something like this:
  88.  
  89.  
  90. C:\
  91. ╠═ C:\IBMCOM
  92. ║       
  93. ╠═ C:\IBMLAN
  94. ║       
  95. ╠═ C:\OS/2
  96. ║       
  97. ╠═ C:\USERS
  98. ║  ║
  99. ║  ╠═ C:\USER1
  100. ║  ║
  101. ║  ║
  102. ║  ╠═ C:\USER2
  103. ║  ║  ║
  104. ║  ║  ╠═ IBMWORKS
  105. ║  ║  ║
  106. ║  ║  ╠═ ULTIMOTION
  107.  
  108.  
  109. DASD limits control the size of the resoure but also the size of any resources below them.
  110. If you simply want to make sure that the tree under C:\USERS does not grow too large, then 
  111. you could only apply a limit to C:\USERS. In this case, you would use BACKDASD in non-recursive
  112. mode.
  113.  
  114. To make BACKDASD backup all sub-dirctories, then use BACKDASD in recursive mode (default).
  115.  
  116. If you had limits applied to the USER1, USER2.. directories (but not to the other sub-directories
  117. below each of these directories) then to save BACKDASD searching through all subdirectories, then
  118. use BACKDASD in recursive mode 2. This means that BACKDASD will backup DASD information for the 
  119. C:\USERS directory and for C:\USER1 and C:\USER2 but not for any of the sub-directories coming
  120. off C:\USER1 or C:\USER2. In effect, BACKDASD is being recursive but to only one level down. This 
  121. can save backup time on very large disks with many directories. For recursive mode 2, you will 
  122. need to be logged on as an administrator to backup a remote server.
  123.  
  124.  
  125.  
  126. 3.      Syntax
  127. --------------
  128.  
  129. Go into the directory containing the BACKDASD utility. This will be the place you asked for
  130. during INSTALL.
  131.  
  132. Typing BACKDASD /? provides the following information:
  133.  
  134.  
  135. BACKDASD Version 1.00beta   Release 04/08/96 (c) Steve Sharrad.
  136. Internet e-mail: ssha@henleycol.ac.uk
  137.  
  138. Backs up DASD directory limits on 386-HPFS DASD-enabled volumes.
  139. BACKDASD backs up all DASD information for a specified path into
  140. a backup file. You can then use RESTDASD to restore this file.
  141.  
  142. The syntax of this command is:
  143. BACKDASD /F:[filename] /P:[pathname] [/R:[value]] [/L:[filename]] [/S:\\[servern
  144. ame]] [[/E]] [[/C]] [[/V]] [[/T]]
  145.  
  146. Required Parameters: /F:[filename]      Specify a filename to backup to
  147.                     Default extension is .DSD
  148.              /P:[pathname]      Specify the pathname/tree to backup
  149. Optional Parameters: /R:[value]         Specify 0 to turn off recursive backup
  150.                     Specify 1 (default) to backup all sub-
  151.                     directories, or 2 to backup only sub-
  152.                     directories upto 1 level down.
  153.              /L:[filename]      Specify a different errorlog filename
  154.                     Defaults to \DASD.LOG
  155.              /S:\\[server]      Specify a valid server on domain. If
  156.                     used, then pathname must be on server
  157.              /E                 Turns-off the error logging to file
  158.              /C                 Displays info and asks for confirmation
  159.              /V                 Displays information during process
  160.              /T                 Write the operation time and backup
  161.                     count to error log upon completion
  162.  
  163.  
  164. /F:[filename]
  165. -------------
  166.  
  167. Use this parameter to specify a file to backup to. If you don't specify an extension, then
  168. .DSD is assumed. If the file already exists a backup copy will be made.
  169.  
  170. You should put a fully qualified pathname in front of the filename.
  171.  
  172.  
  173. /P:[pathname]
  174. -------------
  175.  
  176. Specify the tree to backup. If you want to backup a whole drive, then specify the root, e.g.
  177.  
  178.         /P:C:\. 
  179.  
  180. If you want to backup a tree which has a space character in the filename, then encapsulate the
  181. pathname in quotes, e.g.
  182.  
  183.         /P:"C:\USERS RULE"
  184.  
  185.  
  186.  
  187. The following parameters are optional.
  188.  
  189. /R:[value]
  190. ----------
  191.  
  192. Use this switch to change the recursive mode. The modes are as follows:
  193.  
  194. 0               Backs up the directory specified by the /P: switch but no sub-directories
  195. 1 (default)     Backs up all sub-directories. Could take some time on large disks.
  196. 2               Backs up sub-directories but only down to one level. Saves time on large disks.
  197.  
  198.  
  199. /L:[filename]
  200. -------------
  201.  
  202. Use this switch to specify an alternative location and name for the log file.
  203.  
  204.  
  205. /S:\\[servername]
  206. -----------------
  207.  
  208.  
  209. Defaults to the local workstation.
  210.  
  211. Use this switch to specify the servername to backup. This can be any running server on the same
  212. domain (specifying the local workstation name does not fool BACKDASD and makes no difference).
  213.  
  214. Note that if you use this switch then the pathname pointed to by /P: must be a real pathname
  215. on the specified server. You cannot backup re-directed resources directly; you must use the /S:\\
  216. switch.
  217.  
  218.  
  219. /E
  220. --
  221.  
  222. Stops any entries being written to the error log.
  223.  
  224. /C
  225. --
  226.  
  227. Make BACKDASD display information on what it is about to do and ask for confirmation before it
  228. actually does it.
  229.  
  230.  
  231. /V
  232. --
  233.  
  234. Make BACKDASD report verbosely during the backup.
  235.  
  236.  
  237. /T
  238. --
  239.  
  240. Make BACKDASD make entry into error log upon successfull completion of task.
  241.  
  242.  
  243.  
  244. 4.      Notes
  245. -------------
  246.  
  247.  
  248. Drives must be enabled for DASD limits before any limits can be applied. 
  249. This is dones by using NET DASD [drivename] /ENABLE and restarting the workstation.
  250.  
  251. You must be logged on as an administrator to backup a remote server.
  252.  
  253. If the /S:\\ switch is used, then the pathname must be on the remote server.
  254.  
  255.  
  256.  
  257. Creating an AT schedule:
  258.  
  259. OS/2 prompt
  260.  
  261. AT 20.00 /EVERY:M,T,W,TH,F,S BACKDASD /F:c:\backup\cdrive.dsd /p:c:\ /l:c:\ibmlan\logs\dasd.log /t
  262.  
  263. This creates an AT schedule which runs at 8.00pm every evening of the week
  264. except Sunday. It calls BACKDASD and backs up all DASD limits on the C drive.
  265. The file is stored in C:\BACKUP. Logging is to a file in C:\IBMLAN\LOGS. BACKDASD
  266. also writes to the error log upon completion so that this file can be checked to
  267. make sure the backup went OK.
  268.  
  269. Ideally, instead of calling BACKDASD, the AT scheduler should call a batch
  270. file which calls BACKDASD, then BACKACC (if needed) and then your tape
  271. backup software. Note that if you wish to use BACKDASD from another .CMD batch file, then the CALL command must be used
  272. otherwise when BACKDASD finishes it will not return back to the calling .CMD file.
  273.  
  274. Note that BACKDASD can return error codes back to the calling process if the /V
  275. switch is used. If you are using the AT command, then do not use the /V switch; you won't see any 
  276. information anyway but the /V switch causes the whole of the calling process indicated by
  277. the AT command to be aborted (if BACKDASD encounters an error and returns an error code).
  278.  
  279. If you have a large number of DASD limits below a path (in excess of 1000) then it is possible
  280. that BACKDASD will report error BACKDASD 0005: Insufficient stack space.
  281.  
  282. This can be cured by editing the BACKDASD program file and increasing the buffersize value at the
  283. top of the file. I've never exhausted the buffer because I've set it quite high, but if you do
  284. get this error then BACKDASD will report an estimate of what it thinks it should be set to.
  285.  
  286.  
  287. Maximum Backup Size
  288.  
  289. In fully recursive mode, BACKDASD can back up upto about 1,600 DASD limits (depending on the length of the directory names).
  290. You will find that BACKDASD fails if there are more limits to be backup up but BACKDASD runs out of memory, and returns error 14.
  291. You have two options:
  292.  
  293. i)      Use Recursive Mode 2. If all of your DASD limits are user home directories one-level down off a main tree, then use /R:2.
  294. ii)     Use normal mode but split the backup into several main trees.
  295. iii)    Increase the amount of memory BACKDASD is allowed to use. Make a backup copy of the BACKDASD.CMD file, and then open    it using the E editor. On the first page you will notice a value called DASDInfo.Buffersize.
  296.     The value is in bytes. The default value is 6018000. Increase the value inside the inverted commas to allow BACKDASD    to use more memory.
  297.  
  298. Default:        DASDInfo.BufferSize='6018000'
  299.  
  300.     Note that if you specify a value ludicrously high, then BACKDASD uses a smaller value and even less is backed up.
  301.  
  302. 5.      Problems
  303. ----------------
  304.  
  305.  
  306. There are no known problems with the software. However, if you do come across a problem, please
  307. make a note of the following after trying again:
  308.  
  309. - The version of BACKDASD you are using
  310. - The command line options you gave to BACKDASD
  311. - The configuration of your computer
  312. - Any error numbers or exitcodes
  313. - BACKDASD contains an in-built freak error handler. This will provide a few lines of debug
  314.   information which you should also record
  315.  
  316.  
  317. Send details via e-mail to ssha@henleycol.ac.uk. If possible, send also a copy of the DASD
  318. error log and any partially created backup files and a listing of your directory structure.
  319. No fixes guarunteed!
  320.  
  321. There are two limitations with the current release of BACKDASD:
  322. - You cannot call BACKDASD from another intelligent REXX script unless ADDRESS is used. You can use the CALL command to invoke BACKDASD from a normal .CMD batch file, however.
  323.  
  324. - Maximum size of buffer; this can be increased if needed by user.
  325.  
  326.  
  327. 6.      Suggestion on how to incorporate DASD limits.
  328. ----------------------------------------------------
  329.  
  330. You can add or modify DASD limits by either using the Drives utility in the
  331. OS/2 System Folder (OS/2 3.0 only), or by the NET DASD command, or by using the
  332. SETDASD program (supplied with this program).
  333.  
  334. For help with the command line, read the Network Administrators Guide.
  335.  
  336. If you using a REXX batch file to make your user accounts, then you
  337. could make a version of this file which includes a NET DASD add
  338. statement which operates on the users home directory as the user account
  339. is created.
  340.  
  341. You can also set the threshold of when warnings are sent out as the resource begins to fill up
  342. and how often warnings are sent out after then.
  343.  
  344.  
  345.