home *** CD-ROM | disk | FTP | other *** search
/ Lion Share / lionsharecd.iso / utils_mz / xdosman.zip / CHAPT10.DOC < prev    next >
Text File  |  1991-11-28  |  16KB  |  428 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                                   Chapter 10.
  8.  
  9.                         The X-DOS Backup/Restore Program
  10.  
  11.      Introduction
  12.  
  13.           X-DOS includes a powerful menu driven Backup and Restore utility.
  14.           If you have had the unfortunate experience of hard disk crashes
  15.           or accidentally destroying files, you will appreciate this easy
  16.           to use yet fast and reliable BACKUP & RESTORE utility. This
  17.           program can be used to save all your hard disk data on floppy
  18.           disks allowing you to later restore this data if the original
  19.           data on the hard disk becomes corrupted or is deleted.
  20.  
  21.      Backup main features
  22.  
  23.           *  Fully menu driven and help available at all levels.
  24.           *  Supports MS-DOS command line compatible switches.
  25.           *  Compress data in a very efficient way.
  26.           *  Supports Backup to any kind of removable floppies
  27.           *  Diskette backup preview to efficiently calculate the number of
  28.              diskette(s) needed for backing up.
  29.           *  Directory tree and selection by including or excluding files.
  30.  
  31.      When to Use Backup
  32.  
  33.           When you should use backup depends mainly on how valuable your
  34.           data is. You can never be too careful about data integrity and it
  35.           is always a good idea to backup data as soon as it has been
  36.           updated or created on your disk.
  37.  
  38.           It is a good idea to keep different backups according to data
  39.           that is frequently changed and data that is important to your
  40.           computing activities but which never changes. For instance, you
  41.           might decide to backup your utility directory of your disk and
  42.           put the diskette(s) in a safe place. Then every day or every few
  43.           days, make a backup of the files that have only been changed to a
  44.           great extent. Remember also to use at least two sets of diskettes
  45.           (minimum) when you are backing up. Never backup up on to the
  46.           latest diskettes.
  47.  
  48.      Methods of Backing Up Data
  49.  
  50.           Different backup methods are possible when using XBACK. They are
  51.           described here:
  52.  
  53.           Full Backup
  54.           In this case, select all the files from the tree selection
  55.           regardless of whether the files were changed or not. If you set
  56.           the option to reset archive bit afterwards, all the files will be
  57.           marked as backed up.
  58.  
  59.  
  60.  
  61.  
  62.                                       10-1
  63.  
  64.  
  65.  
  66.  
  67.  
  68.           Incremental Backup
  69.           In this method you are supposed to have made a first set of the
  70.           full backup once that is kept safe. The incremental backups will
  71.           backup only the files that have been changed or new files. In
  72.           this method, you must set the archive bit to Yes. The next
  73.           incremental backup will only backup the new files or modified
  74.           files since the last backup.
  75.  
  76.           Differential Backup
  77.           This method also supposes that a full backup has been made
  78.           previously. However, it will make backup of files that have been
  79.           changed since the first full backup. As a result, you must set
  80.           the Reset Archive Bit option to No.
  81.  
  82.      Starting XBACK
  83.  
  84.           The X-DOS backup command is called XBACK. You can activate the X-
  85.           DOS BACKUP program by typing XBACK at the command line with no
  86.           parameters. In order to maintain compatibility with MS-DOS XBACK
  87.           has a predefined alias of BACKUP which means you can also run
  88.           XBACK by typing BACKUP at the DOS prompt. This is for the benefit
  89.           of users who are used to the BACKUP command and whether you type
  90.           BACKUP or XBACK as the command makes no difference to how the
  91.           program works.
  92.  
  93.           XBACK will prompt you with the main menu and you can choose from
  94.           one of its main features, mainly BACKUP or RESTORE. XBACK can
  95.           also be activated with parameters defined as follow :
  96.  
  97.           Command Syntax:
  98.           BACKUP [d1:][path][filespec] [d2:] [/ or - params]
  99.  
  100.           Parameters:
  101.           [d1:][path] - is the drive and path to the files you want to
  102.                       backup.
  103.  
  104.           [filespec]  - is the range of files you want to backup.
  105.  
  106.           [d2:]       - is the floppy drive you want to backup to.
  107.  
  108.           [params]    - are any of the switches described as follow :
  109.  
  110.           Available XBACK Switches:
  111.  
  112.           /, - B  - starts backing up the specified range of files (default
  113.                     *.*).
  114.  
  115.           /, - D  - prompts you for a date and backs up files modified on
  116.                     or after your specified date.
  117.  
  118.           /, - E  - enables an audible prompt for diskette changes and
  119.  
  120.  
  121.  
  122.  
  123.                                       10-2
  124.  
  125.  
  126.  
  127.  
  128.                     messages.
  129.  
  130.           /, - I  - resets the archive attribute on files that are backed
  131.                     up.
  132.  
  133.           /, - M  - only backs up files that have changed since last
  134.                     backup.
  135.  
  136.           /, - O  - gives overwrite warning if diskette already contains
  137.                     data.
  138.  
  139.           /, - P  - enables packing of data, greatly reducing the necessary
  140.                     number of backup diskettes.
  141.  
  142.           /, - R  - starts restoring mode.Insert last backup diskette from
  143.                     set.
  144.  
  145.           /, - S  - includes any sub-directories to the specified filespec.
  146.  
  147.           /, - V  - verifies that data can be read from the backup
  148.                     diskette(s).
  149.  
  150.           /, - Y  - includes system and hidden files in the backup.
  151.  
  152.      Setting and Resetting Default BACKUP Switches:
  153.  
  154.           The BACKUP command lets you set your preferred default switches
  155.           with the SET BACKUP=/switches command. To make the default switch
  156.           settings permanent, include the above statement in your
  157.           AUTOEXEC.BAT file.
  158.  
  159.           Here is an example which will make BACKUP give an audible prompt
  160.           (/B) and pack your data onto fewer diskettes (/P) as default:
  161.  
  162.                                 SET BACKUP=/B/P
  163.  
  164.           BACKUP provides a delimiter (-) which gives you an easy way to
  165.           turn off a BACKUP option which is either turned on as default or
  166.           turned on with the SET BACKUP=/switches command. To change the
  167.           Overwrite Prompt option from its default Yes to No, just execute
  168.           BACKUP with the -O switch.
  169.  
  170.      Using the BACKUP feature of XBACK
  171.  
  172.           Most of the use of XBACK concerns the BACKUP function. We surely
  173.           hope you will not need to use the RESTORE feature too often!
  174.           You can either access the BACKUP function from inside XBACK at
  175.           the top menu or by calling BACKUP at the command line.
  176.  
  177.           Choose the devices
  178.           The first thing before you actually start backing up is to select
  179.           which drive you wish to backup and where it will be backed up.
  180.  
  181.  
  182.  
  183.  
  184.                                       10-3
  185.  
  186.  
  187.  
  188.  
  189.           You can change the devices definition by activating the 'Devices'
  190.           command.
  191.  
  192.           The first item lets you change the hard disk drive. Type in the
  193.           hard disk drive that you wish to backup. The default window will
  194.           probably display 'From C: to A:'. If you type D, it will change
  195.           to 'From D: to A:' and so on.
  196.  
  197.           The 'Change Floppy Medium' will toggle the type of floppy you are
  198.           using to which ever possibility exists. You could for instance
  199.           decide to put 360K diskettes in a 1.2 Mb drive.
  200.  
  201.           File Selection
  202.           Once the devices are chosen, it is necessary to choose what files
  203.           will be selected for backup. By default, XBACK performs a full
  204.           backup, so all the files are selected. Several methods are
  205.           available to select or unselect files.
  206.  
  207.           Directory Choice
  208.           This method will display a tree structure of you drive with the
  209.           directory names on the left window and the files available in
  210.           that directory in the right window. You can scroll in each window
  211.           by using cursor keys or a mouse and change window by either using
  212.           the TAB key or by clicking in the opposite window with the mouse.
  213.           If you are in the directory window, you can select or deselect
  214.           the entire contents of the current directory as well as all the
  215.           subdirectories by typing the [ENTER] key or by clicking on its
  216.           name with the mouse. Alternatively, if the directory was
  217.           deselected, clicking on it or typing [ENTER] will select it
  218.           again.
  219.  
  220.           If you are currently in the File window, You can select or
  221.           deselect files individually by clicking on them or typing
  222.           [ENTER].
  223.  
  224.           When you either select or deselect a file or a directory, you
  225.           will see in the upper part of the window the number of files and
  226.           number of kilo bytes changing accordingly.
  227.  
  228.           System files
  229.           This option will simply take into account files that have the
  230.           system and/or hidden attribute set and will make them available
  231.           for selection.
  232.  
  233.           Date selection
  234.           This option let you select files that have a date equal or
  235.           superior to the one you specify in the Selection Date Window. If
  236.           you specify a date and then return to the directory selection,
  237.           you will find that some files that were previously selected have
  238.           been unselected by the date filter.
  239.  
  240.           Archive Bit Set
  241.  
  242.  
  243.  
  244.  
  245.                                       10-4
  246.  
  247.  
  248.  
  249.  
  250.           This option is necessary if you intend to perform an incremental
  251.           or differential backup. The Archive Bit is set if a file is
  252.           modified or created. As a result, selecting files with the Bit
  253.           Archive Set will only select files that have not been backed up
  254.           since the first full backup.
  255.           You must decide between differential or incremental backup by
  256.           setting the Reset Archive Bit to No or Yes accordingly.
  257.  
  258.           Options
  259.           Several options are offered to you to tune your Backup procedure.
  260.  
  261.           Reset Archive Bit was previously discussed and concerned the
  262.           difference between differential and incremental backup.
  263.  
  264.           The Overwrite Feature is a security feature that will warn you if
  265.           the destination diskette already contains data and prompt you to
  266.           continue or change diskette.
  267.  
  268.           The Data Compression is important for the speed and diskette
  269.           consumption ratio. When data compression is used, the space
  270.           consumption on the output diskette is greatly reduced. It is hard
  271.           to predict how much will be gained since it depends of the nature
  272.           of your data, but you should at least gain 30% in disk space.
  273.           Data compression, however, needs substantially more time to
  274.           backup given the algorithm used to compress. You may choose
  275.           between the two methods according to either the number of free
  276.           diskettes you have or how much time you are willing to spend in
  277.           front of your PC when backing up.
  278.  
  279.           The Verify Option simply checks if the data can be read again
  280.           after writing. It is a security feature but it is also costly in
  281.           time.
  282.  
  283.           The Beep Option will turn on or off the sound when the user is
  284.           prompted by XBACK.
  285.  
  286.           See Total
  287.           If you do not wish to modify the file selection, but still want
  288.           to view how many Kilo Bytes of data will be backed up and/or how
  289.           many files have been selected, you can activate the 'See Total
  290.           Command' to force XBACK to load the file structure and update its
  291.           data.
  292.  
  293.           Backup Preview
  294.           The backup preview will simulate a real backup taking into
  295.           account the files selected and compression, but will not write
  296.           any data to the actual diskette. This option is available for
  297.           those of you that wish to know exactly how many diskettes are
  298.           needed, since estimating the number of diskettes required when
  299.           data compression is on can be totally meaningless.
  300.  
  301.           Start Backup
  302.  
  303.  
  304.  
  305.  
  306.                                       10-5
  307.  
  308.  
  309.  
  310.  
  311.           When your file selection has been made and all your preferences
  312.           and switches are set accordingly, you can start the backup with
  313.           this function.
  314.  
  315.           XBACK will display a screen that monitors the number of files and
  316.           kilo bytes backed up with their names in the bottom part of the
  317.           screen, directories on the left and files on the right. On the
  318.           upper right part of the screen, it will show the current diskette
  319.           number as well as its rate of filling.
  320.  
  321.           When the current diskette is full, XBACK will prompt you to enter
  322.           a new diskette in the drive.
  323.  
  324.      Using the Restore Feature of XBACK
  325.  
  326.           The same principle applies to the BACKUP and the RESTORE in terms
  327.           of device configuration and file selection. They will therefore
  328.           not be repeated here.
  329.  
  330.           In order to restore a previous backup, XBACK is expecting you to
  331.           put the last diskette in the diskette drive in order to rebuild
  332.           the directory tree. If you have lost this diskette or if it
  333.           happens that it is completely destroyed, you don't have to worry.
  334.           XBACK has a feature where it can reconstruct files even if the
  335.           last one is not available.
  336.  
  337.           When the last diskette is available and in order, XBACK will used
  338.           the saved tree structure to reconstruct the file names and paths.
  339.           You will then be able to select files and directory as you did
  340.           with BACKUP before you decide to restore files.
  341.  
  342.           If the last diskette is not available, things are a little bit
  343.           more complicated. When the last diskette is missing, XBACK does
  344.           not know how many files are present in the backup diskettes. It
  345.           will prompt you to insert the first diskette until the last one
  346.           available with you. At the last one, press 'D' to tell XBACK that
  347.           it was the last diskette. From then, XBACK will reconstruct the
  348.           tree structure and you will be able to make selections as before.
  349.  
  350.           Directory Option
  351.           XBACK has a feature to display the directory of backed up
  352.           diskettes without activating the Restore function. You will be
  353.           prompted to input the last diskette of your backed up diskettes
  354.           (or the first one if the last is not available). Each directory
  355.           will be displayed one at a time and you will be prompted to
  356.           continue visualizing the tree.
  357.  
  358.           Compare Option
  359.           The compare option may be needed to check which files have
  360.           changed since the previous backup. XBACK will prompt you to
  361.           insert the last diskette of the previous backup to reconstruct
  362.           the tree. Then input the diskettes one at a time starting with
  363.  
  364.  
  365.  
  366.  
  367.                                       10-6
  368.  
  369.  
  370.  
  371.  
  372.           the first one.
  373.  
  374.           XBACK will compare the file from the backup and the one available
  375.           in your hard disk at the same location as defined in the path of
  376.           the backup file. The file may be the same, it may contains
  377.           differences or its length may be different. In any case, XBACK
  378.           will detect any changes between the files and report them to you
  379.           in the left window of the screen.
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.                                       10-7