home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / dosutils / xdosman.arj / CHAPT10.DOC < prev    next >
Encoding:
Text File  |  1991-11-28  |  15.7 KB  |  428 lines

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